aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-11 22:24:35 +0800
committerobscuren <geffobscura@gmail.com>2014-08-11 22:24:35 +0800
commitc59d7a899b0ca121b3f982fa12405629109f1b47 (patch)
tree1859ac54e0f9948927287caeae863b730eb1fbd9 /utils
parentce8f24e57a3ba31d17c34db284bd3d9efa15e7d8 (diff)
downloadgo-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.tar
go-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.gz
go-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.bz2
go-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.lz
go-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.xz
go-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.tar.zst
go-tangerine-c59d7a899b0ca121b3f982fa12405629109f1b47.zip
Added open js option for repetitive tasks in ethereal
Diffstat (limited to 'utils')
-rw-r--r--utils/vm_env.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/vm_env.go b/utils/vm_env.go
index 2c40dd7b8..30568c421 100644
--- a/utils/vm_env.go
+++ b/utils/vm_env.go
@@ -1,9 +1,10 @@
package utils
import (
+ "math/big"
+
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethstate"
- "math/big"
)
type VMEnv struct {
@@ -29,5 +30,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.value }
func (self *VMEnv) State() *ethstate.State { return self.state }