-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Check current syncing state before blocks-first sync attempt * Display syncing progress percentage * Use blocks-first directly when the chain is higher than the last checkpoint * Check max get blocks size separately * Only process the messages from current sync peer * Adjust the block data request size based on the current height * Increate stall timeout * Set syncing state to idle if synced to the majority of peers * Extract `truncate_and_prepare_block_data_request()` * Switch to idle when blocks-first is complete Handle the new blocks broadcasted via inv message. * Fix clippy * Nit * Update download state on block sync completion * Reduce one needless allocation
- Loading branch information
1 parent
ceb96c9
commit 2710198
Showing
8 changed files
with
242 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.