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
aeb272ef5e
commit
926d81e34e
1 changed files with 1 additions and 0 deletions
|
|
@ -259,6 +259,7 @@ func (self *StateDB) GetCodeSize(addr common.Address) int {
|
||||||
return size
|
return size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetCodeHash returns the hash of the code associated with the address.
|
||||||
func (self *StateDB) GetCodeHash(addr common.Address) common.Hash {
|
func (self *StateDB) GetCodeHash(addr common.Address) common.Hash {
|
||||||
stateObject := self.GetStateObject(addr)
|
stateObject := self.GetStateObject(addr)
|
||||||
if stateObject == nil {
|
if stateObject == nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue