mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
clarify case about selfdestructing initcode
This commit is contained in:
parent
58eac317b1
commit
77a98936ed
1 changed files with 1 additions and 3 deletions
|
|
@ -315,9 +315,7 @@ func (s *hookedStateDB) Finalise(deleteEmptyObjects bool) {
|
|||
prevCodeHash := s.inner.GetCodeHash(addr)
|
||||
prevCode := s.inner.GetCode(addr)
|
||||
|
||||
// don't record a code change if its a selfdestructing initcode
|
||||
// ^ TODO: I assume that this is the only case where this can occur but should double-check
|
||||
// just to be totally sure
|
||||
// if an initcode invokes selfdestruct, do not emit a code change.
|
||||
if prevCodeHash == types.EmptyCodeHash {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue