Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"

This reverts commit 7a5b571c67.
This commit is contained in:
Péter Szilágyi
2016-06-29 11:44:51 +03:00
parent d55fc35df1
commit 6362a9d610
11 changed files with 29 additions and 95 deletions

View File

@ -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 {