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

Split IBD among multiple connected peers #325

Open
Varunram opened this issue Aug 18, 2018 · 0 comments
Open

Split IBD among multiple connected peers #325

Varunram opened this issue Aug 18, 2018 · 0 comments
Labels
enhancement Nontrivial improvements that add/enhance features

Comments

@Varunram
Copy link
Contributor

A natural extension of #324, this would speed up IBD as is greatly. Say we want to request headers from 1300000 to 1500000 and maxConnections is defined to be 5. We could split the 200000 blocks to be synced into 5 chunks and request one chunk from each peer. On the database side, all we need to do is assemble the blocks out of line and then after sync is done, check the hashes of the four border blocks (the starting of each chunk except the first one which would be checked already).

Will do after the main PR on this is merged in order to prevent merge conflicts.

@delbonis delbonis added the enhancement Nontrivial improvements that add/enhance features label Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Nontrivial improvements that add/enhance features
Projects
None yet
Development

No branches or pull requests

2 participants