Skip to content

Conversation

rjl493456442
Copy link
Member

Previously, the account trie for a given state root was resolved immediately
when the stateDB was created, implying that the trie was always required
by the stateDB.

However, this assumption no longer holds, especially for path archive nodes,
where historical states can be accessed even if the corresponding trie data
does not exist.

@rjl493456442 rjl493456442 requested a review from gballet April 28, 2025 06:11
@rjl493456442 rjl493456442 force-pushed the defer-trie-resolution branch from f6d50bc to cb707e7 Compare May 13, 2025 05:38
Previously, the account trie for a given state root was resolved
immediately when the stateDB was created, implying that the trie
was always required by the stateDB.

However, this assumption no longer holds, especially for path
archive nodes, where historical states can be accessed even if the
corresponding trie data does not exist.
@rjl493456442 rjl493456442 force-pushed the defer-trie-resolution branch from cb707e7 to 02a2437 Compare June 24, 2025 13:11
@rjl493456442 rjl493456442 changed the title core, consensus/beacon: defer trie resolution until necessary core, consensus/beacon: defer trie resolution Jun 24, 2025
Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@rjl493456442 rjl493456442 added this to the 1.16.0 milestone Jun 24, 2025
@rjl493456442 rjl493456442 merged commit cafa5e6 into ethereum:master Jun 25, 2025
3 of 4 checks passed
rjl493456442 added a commit to rjl493456442/go-ethereum that referenced this pull request Jul 19, 2025
Previously, the account trie for a given state root was resolved immediately
when the stateDB was created, implying that the trie was always required
by the stateDB.

However, this assumption no longer holds, especially for path archive nodes,
where historical states can be accessed even if the corresponding trie data
does not exist.
howjmay pushed a commit to iotaledger/go-ethereum that referenced this pull request Aug 27, 2025
Previously, the account trie for a given state root was resolved immediately 
when the stateDB was created, implying that the trie was always required
by the stateDB.

However, this assumption no longer holds, especially for path archive nodes, 
where historical states can be accessed even if the corresponding trie data 
does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants