aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm_env.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-11 22:23:38 +0800
committerobscuren <geffobscura@gmail.com>2014-08-11 22:23:38 +0800
commita760ce05b948e89bc564af20599dcf95698ac0eb (patch)
treee9a1f0161521bc895de45e683ba6904a0d4923f9 /ethchain/vm_env.go
parent2e5d28c73f1d97865def3ffe8c7ad0a4819f15f3 (diff)
downloadgo-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.tar
go-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.gz
go-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.bz2
go-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.lz
go-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.xz
go-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.tar.zst
go-tangerine-a760ce05b948e89bc564af20599dcf95698ac0eb.zip
Updated chain for filtering
Diffstat (limited to 'ethchain/vm_env.go')
-rw-r--r--ethchain/vm_env.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethchain/vm_env.go b/ethchain/vm_env.go
index ddead77fd..30f9497fa 100644
--- a/ethchain/vm_env.go
+++ b/ethchain/vm_env.go
@@ -1,8 +1,9 @@
package ethchain
import (
- "github.com/ethereum/eth-go/ethstate"
"math/big"
+
+ "github.com/ethereum/eth-go/ethstate"
)
type VMEnv struct {
@@ -25,5 +26,6 @@ func (self *VMEnv) PrevHash() []byte { return self.block.PrevHash }
func (self *VMEnv) Coinbase() []byte { return self.block.Coinbase }
func (self *VMEnv) Time() int64 { return self.block.Time }
func (self *VMEnv) Difficulty() *big.Int { return self.block.Difficulty }
+func (self *VMEnv) BlockHash() []byte { return self.block.Hash() }
func (self *VMEnv) Value() *big.Int { return self.tx.Value }
func (self *VMEnv) State() *ethstate.State { return self.state }