core/state, core/vm: improve code hashing in the EVM

This commit is contained in:
Jeffrey Wilcke 2016-10-01 22:05:22 +02:00 committed by Jeffrey Wilcke
parent 657fe5fda0
commit edb151ab71

View file

@ -267,6 +267,7 @@ func (self *StateDB) GetCodeSize(addr common.Address) int {
return size
}
// GetCodeHash returns the hash of the code associated with the address.
func (self *StateDB) GetCodeHash(addr common.Address) common.Hash {
stateObject := self.GetStateObject(addr)
if stateObject == nil {