diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-06-29 16:44:51 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-06-29 16:44:51 +0800 |
commit | 6362a9d6102b26e926b3e73563267fc75cb30f9c (patch) | |
tree | 56ce21d1aaf6df3908335601a687f0f3ac4a50be /core/state/statedb.go | |
parent | d55fc35df1ca4996048625421d4c475a437d273e (diff) | |
download | dexon-6362a9d6102b26e926b3e73563267fc75cb30f9c.tar.gz 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/state/statedb.go')
-rw-r--r-- | core/state/statedb.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index 79cbbaee8..3e25e0c16 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -51,8 +51,6 @@ type StateDB struct { txIndex int logs map[common.Hash]vm.Logs logSize uint - - reducedDao bool } // Create a new state from a given trie @@ -163,14 +161,6 @@ func (self *StateDB) GetCode(addr common.Address) []byte { return nil } -func (self *StateDB) GetCodeHash(addr common.Address) common.Hash { - stateObject := self.GetStateObject(addr) - if stateObject != nil { - return common.BytesToHash(stateObject.codeHash) - } - return common.Hash{} -} - func (self *StateDB) GetState(a common.Address, b common.Hash) common.Hash { stateObject := self.GetStateObject(a) if stateObject != nil { |