Do not request blocks below the common number when syncing (#2045)
This changes `BlockCollection` logic so we don't download block ranges from peers with which we have these ranges already in sync. Improves situation with https://github.com/paritytech/polkadot-sdk/issues/1915.
Showing
- substrate/client/network/sync/src/blocks.rs 223 additions, 9 deletionssubstrate/client/network/sync/src/blocks.rs
- substrate/client/network/sync/src/chain_sync.rs 32 additions, 6 deletionssubstrate/client/network/sync/src/chain_sync.rs
- substrate/client/network/sync/src/chain_sync/test.rs 0 additions, 107 deletionssubstrate/client/network/sync/src/chain_sync/test.rs
Please register or sign in to comment