aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm_env.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-29 16:44:51 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-06-29 16:44:51 +0800
commit6362a9d6102b26e926b3e73563267fc75cb30f9c (patch)
tree56ce21d1aaf6df3908335601a687f0f3ac4a50be /core/vm_env.go
parentd55fc35df1ca4996048625421d4c475a437d273e (diff)
downloaddexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar
dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar.gz
dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar.bz2
dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar.lz
dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar.xz
dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar.zst
dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.zip
Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"
This reverts commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d.
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 1c1110280..599672382 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 }