Skip to content

Commit

Permalink
e2: Fix state root calculation for EIP-7702 accounts with storage (#1…
Browse files Browse the repository at this point in the history
…2261)

With EIP-7702 even EOAs might have some storage set, and we use zero
incarnation for EOAs.
  • Loading branch information
yperbasis authored Oct 9, 2024
1 parent d33a84a commit 5ce1d85
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions turbo/trie/trie_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ func (l *FlatDBTrieLoader) CalcTrieRoot(tx kv.Tx, quit <-chan struct{}) (libcomm
if err = l.receiver.Receive(AccountStreamItem, kHex, nil, &l.accountValue, nil, nil, false, 0); err != nil {
return EmptyRoot, err
}
if l.accountValue.Incarnation == 0 {
continue
}
copy(l.accAddrHashWithInc[:], k)
binary.BigEndian.PutUint64(l.accAddrHashWithInc[32:], l.accountValue.Incarnation)
accWithInc := l.accAddrHashWithInc[:]
Expand Down

0 comments on commit 5ce1d85

Please sign in to comment.