sync: Fixed clearing subsequent ranges (#11815)

* sync: Fixed clearing subsequent ranges

* Warp sync fix

* Better documentation
This commit is contained in:
Arkadiy Paronyan
2022-07-12 13:14:42 +02:00
committed by GitHub
parent 5c477eb024
commit a1c60f0909
2 changed files with 43 additions and 8 deletions
+3
View File
@@ -1521,6 +1521,9 @@ where
for (_, hash) in &results {
self.queue_blocks.remove(hash);
self.blocks.clear_queued(hash);
if let Some(gap_sync) = &mut self.gap_sync {
gap_sync.blocks.clear_queued(hash);
}
}
for (result, hash) in results {
if has_error {