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 authored and GitHub committed 2021-09-06 07:25:30 +00:00
1 parent ffced22fb7
commit cd19c7b79e
5 files changed
+45 -12

No files matched your search

@@ -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
}