Fixed block response limit check (#9692)

* Fixed block response limit check

* Fixed start block detection and added a test

* Missing test
This commit is contained in:
Arkadiy Paronyan
2021-09-06 09:25:30 +02:00
committed by GitHub
parent ffced22fb7
commit cd19c7b79e
5 changed files with 45 additions and 12 deletions
@@ -194,7 +194,7 @@ impl<B: BlockT> BlockCollection<B> {
for r in ranges {
self.blocks.remove(&r);
}
trace!(target: "sync", "Drained {} blocks", drained.len());
trace!(target: "sync", "Drained {} blocks from {:?}", drained.len(), from);
drained
}