Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: add trienode fetcher for snap sync #2623

Merged
merged 66 commits into from
Aug 1, 2023

Conversation

scorbajio
Copy link
Contributor

No description provided.

@scorbajio scorbajio changed the title [client] Trienode fetcher Trienode fetcher for snap sync Apr 8, 2023
@codecov
Copy link

codecov bot commented Apr 11, 2023

Codecov Report

Merging #2623 (3156232) into master (40c2395) will increase coverage by 0.21%.
The diff coverage is 87.41%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.66% <ø> (?)
blockchain 92.58% <ø> (?)
client ?
common 98.64% <ø> (?)
ethash ∅ <ø> (?)
rlp ∅ <ø> (?)
statemanager 85.16% <ø> (?)
trie 89.98% <87.41%> (?)
tx ?
util 86.77% <ø> (?)
vm 79.20% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

scorbajio added 2 commits May 15, 2023 13:28
author Amir <[email protected]> 1680919955 -0700
committer Amir <[email protected]> 1684182403 -0700

Create base for trienode fetcher

Integrate trie node fetcher with account fetcher - Implement task phase

Switch to fetching all nodes starting from root

Keep record of node hashes with requested paths for cross reference check

Add mappings to track path and node requests

Fix bugs

Process node data in store

Queue unkown children of received nodes for fetching

Fetch rest of subtrie before removing active request
@scorbajio scorbajio force-pushed the trie-node-fetcher branch from cfb9404 to b4b58ac Compare May 16, 2023 17:13
@scorbajio scorbajio force-pushed the trie-node-fetcher branch from b4b58ac to c3e3603 Compare May 16, 2023 17:30
@scorbajio scorbajio requested a review from g11tech July 24, 2023 20:10
Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

trienode fetcher seems to be working as expected although further testing and overall fetcher intergration work is required which we can undertake in followups

@g11tech g11tech changed the title Trienode fetcher for snap sync client: add trienode fetcher for snap sync Aug 1, 2023
@holgerd77
Copy link
Member

Cool and congrats 👍 🎉, so from my side we could also merge this in.

@g11tech g11tech merged commit e11a93c into ethereumjs:master Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants