Skip to content

Conversation

@holiman
Copy link
Contributor

@holiman holiman commented Apr 16, 2024

No description provided.

rjl493456442 and others added 3 commits April 16, 2024 15:24
…9378)

* eth/protocols/snap: skip retrieval for completed storages

* eth/protocols/snap: address comments from peter

* eth/protocols/snap: add comments
…29535)

This PR adds a limit of 1000 to the "inner" topics in a filter-criteria
rjl493456442 and others added 2 commits April 16, 2024 18:00
…mplement gentrie (ethereum#29313)

This pull request defines a gentrie for snap sync purpose.

The stackTrie is used to generate the merkle tree nodes upon receiving a state batch. Several additional options have been added into stackTrie to handle incomplete states (either missing states before or after).

In this pull request, these options have been relocated from stackTrie to genTrie, which serves as a wrapper for stackTrie specifically for snap sync purposes.

Further, the logic for managing incomplete state has been enhanced in this change. Originally, there are two cases handled:

-    boundary node filtering
-    internal (covered by extension node) node clearing

This changes adds one more:

- Clearing leftover nodes on the boundaries.

This feature is necessary if there are leftover trie nodes in database, otherwise node inconsistency may break the state healing.
@holiman holiman merged commit c5ba367 into ethereum:release/1.13 Apr 17, 2024
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.

2 participants