go-ethereum/core/state/partial
CPerezz fc2d55dd58
core/state/partial: only write modified accounts to trie
Match upstream BALStateTransition behavior: only call UpdateAccount for
accounts that were actually modified (balance, nonce, code, or storage
changes). Previously, all accounts in the BAL (including read-only ones)
were written back to the trie, which could cause root mismatches if the
re-encoded RLP differed from the original encoding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 12:13:05 +02:00
..
filter.go core/state: add hash-based filter methods and NewPartialStateSync 2026-04-17 11:09:19 +02:00
filter_test.go core/state: add hash-based filter methods and NewPartialStateSync 2026-04-17 11:09:19 +02:00
history.go core, eth: PR review fixes and remove stateRoot field from PartialState 2026-04-17 12:12:46 +02:00
state.go core/state/partial: only write modified accounts to trie 2026-04-17 12:13:05 +02:00
state_test.go core, eth: PR review fixes and remove stateRoot field from PartialState 2026-04-17 12:12:46 +02:00