Avoid a duplicate block request when syncing from a fork (#11094)
* Separate queueing blocks for import from removal * Add regression tests * Remove unnecessary log * Clear queued blocks when processed * Move check out of match block * Track queued block ranges * Update client/network/sync/src/blocks.rs * Update client/network/sync/src/blocks.rs * Update client/network/sync/src/blocks.rs * Update client/network/sync/src/blocks.rs * FMT Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Bastian Köcher <info@kchr.de>
Showing
- substrate/client/consensus/common/src/import_queue.rs 10 additions, 0 deletionssubstrate/client/consensus/common/src/import_queue.rs
- substrate/client/network/sync/src/blocks.rs 87 additions, 27 deletionssubstrate/client/network/sync/src/blocks.rs
- substrate/client/network/sync/src/lib.rs 184 additions, 16 deletionssubstrate/client/network/sync/src/lib.rs
Please register or sign in to comment