From edb151ab71cd1b1f3438ddef99f16bb376d69250 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Sat, 1 Oct 2016 22:05:22 +0200 Subject: [PATCH] core/state, core/vm: improve code hashing in the EVM --- core/state/statedb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/state/statedb.go b/core/state/statedb.go index 2fd5518237..8d706625b2 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -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 {