lit icon indicating copy to clipboard operation
lit copied to clipboard

Split IBD among multiple connected peers

Open Varunram opened this issue 7 years ago • 0 comments

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.

Varunram avatar Aug 18 '18 04:08 Varunram