From 926d81e34e76377fd0ec6193bb5e29a486f5ec46 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 f46f2f4427..4a50db0522 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -259,6 +259,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 {