aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm_env.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-29 16:53:41 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-06-29 16:53:41 +0800
commitadb065a3287bdf78a1597083f2d8e450b8afaaf7 (patch)
treece4293cb155b29ae7ca5961298c52bc2c4b38ae8 /core/vm_env.go
parentc793cb33857d3259febced1a42f457cf9ffbe0bd (diff)
downloadgo-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.tar
go-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.tar.gz
go-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.tar.bz2
go-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.tar.lz
go-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.tar.xz
go-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.tar.zst
go-tangerine-adb065a3287bdf78a1597083f2d8e450b8afaaf7.zip
[release/1.4.9] Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"
This reverts commit a9c94cbf48fefe39104ee3495df139ff374dd219.
Diffstat (limited to 'core/vm_env.go')
-rw-r--r--core/vm_env.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/vm_env.go b/core/vm_env.go
index 3ef61b8ce..f50140c68 100644
--- a/core/vm_env.go
+++ b/core/vm_env.go
@@ -25,8 +25,6 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
)
-var IllegalCodeHashes map[common.Hash]struct{}
-
// GetHashFn returns a function for which the VM env can query block hashes through
// up to the limit defined by the Yellow Paper and uses the given block chain
// to query for information.
@@ -49,8 +47,6 @@ type VMEnv struct {
depth int // Current execution depth
msg Message // Message appliod
- CodeHashes []common.Hash // code hashes collected during execution
-
header *types.Header // Header information
chain *BlockChain // Blockchain handle
logs []vm.StructLog // Logs for the custom structured logger
@@ -76,8 +72,6 @@ func NewEnv(state *state.StateDB, chainConfig *ChainConfig, chain *BlockChain, m
return env
}
-func (self *VMEnv) MarkCodeHash(hash common.Hash) { self.CodeHashes = append(self.CodeHashes, hash) }
-
func (self *VMEnv) RuleSet() vm.RuleSet { return self.chainConfig }
func (self *VMEnv) Vm() vm.Vm { return self.evm }
func (self *VMEnv) Origin() common.Address { f, _ := self.msg.From(); return f }