diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-04 00:18:43 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-04 00:18:43 +0800 |
commit | ca1b2a1a91401255ab4e26cec7eb575b99ecb8da (patch) | |
tree | 87b3c8fed57f688c138288ed5d90a0a3a1e3274b /vm/environment.go | |
parent | 16f417f5af16de8f1c2c140f8b249bd989200bd3 (diff) | |
download | go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.tar go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.tar.gz go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.tar.bz2 go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.tar.lz go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.tar.xz go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.tar.zst go-tangerine-ca1b2a1a91401255ab4e26cec7eb575b99ecb8da.zip |
Changed prev_hash to block_hash, state transition now uses vm env
* PREVHASH => BLOCKHASH( N )
* State transition object uses VMEnv as it's query interface
* Updated vm.Enviroment has GetHash( n ) for BLOCKHASH instruction
* Added GetHash to xeth, core, utils & test environments
Diffstat (limited to 'vm/environment.go')
-rw-r--r-- | vm/environment.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vm/environment.go b/vm/environment.go index 01bbd56ce..d8b1cef28 100644 --- a/vm/environment.go +++ b/vm/environment.go @@ -14,11 +14,10 @@ type Environment interface { Origin() []byte BlockNumber() *big.Int - PrevHash() []byte + GetHash(n uint64) []byte Coinbase() []byte Time() int64 Difficulty() *big.Int - BlockHash() []byte GasLimit() *big.Int Transfer(from, to Account, amount *big.Int) error AddLog(state.Log) |