Skip to content

Commit

Permalink
core/state: don't update state for 0x0 address
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv committed May 4, 2023
1 parent 4573c14 commit 3d0baff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (s *StateDB) updateStateObject(obj *stateObject) {
// update mechanism is not symmetric to the deletion, because whereas it is
// enough to track account updates at commit time, deletions need tracking
// at transaction boundary level to ensure we capture state clearing.
if s.snap != nil {
if s.snap != nil && obj.address.Hex() != "0x0000000000000000000000000000000000000000" {
log.Info("updateStateObject", "addr", obj.address, "balance", obj.data.Balance, "nonce", obj.data.Nonce, "root", obj.data.Root, "code", obj.data.CodeHash)
s.snapAccounts[obj.addrHash] = snapshot.SlimAccountRLP(obj.data.Nonce, obj.data.Balance, obj.data.Root, obj.data.CodeHash)
}
Expand Down

0 comments on commit 3d0baff

Please sign in to comment.