diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-10-01 20:44:53 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-10-01 21:01:58 +0800 |
commit | cb84e3f02953f2df166ae69369d222dcbbd7d78d (patch) | |
tree | 68eb52c91a136e820f3656e394847c4e695afa63 /core/vm/environment.go | |
parent | d8715fba1a366944a069397775fc52a30358eff3 (diff) | |
download | dexon-cb84e3f02953f2df166ae69369d222dcbbd7d78d.tar.gz dexon-cb84e3f02953f2df166ae69369d222dcbbd7d78d.tar.zst dexon-cb84e3f02953f2df166ae69369d222dcbbd7d78d.zip |
cmd, core, internal, light, tests: avoid hashing the code in the VM
Diffstat (limited to 'core/vm/environment.go')
-rw-r--r-- | core/vm/environment.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vm/environment.go b/core/vm/environment.go index 4bd03de7e..daf6fb90d 100644 --- a/core/vm/environment.go +++ b/core/vm/environment.go @@ -94,6 +94,7 @@ type Database interface { GetNonce(common.Address) uint64 SetNonce(common.Address, uint64) + GetCodeHash(common.Address) common.Hash GetCodeSize(common.Address) int GetCode(common.Address) []byte SetCode(common.Address, []byte) @@ -118,7 +119,7 @@ type Account interface { Balance() *big.Int Address() common.Address ReturnGas(*big.Int, *big.Int) - SetCode([]byte) + SetCode(common.Hash, []byte) ForEachStorage(cb func(key, value common.Hash) bool) Value() *big.Int } |