mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
core/state, core/vm: improve code hashing in the EVM
This commit is contained in:
parent
657fe5fda0
commit
edb151ab71
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue