mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-15 01:14:59 -05:00
fix: clear buffered blocks on sync (#4658)
This commit is contained in:
@@ -100,10 +100,11 @@ where
|
||||
self.max_block = Some(block);
|
||||
}
|
||||
|
||||
/// Cancels all download requests that are in progress.
|
||||
/// Cancels all download requests that are in progress and buffered blocks.
|
||||
pub(crate) fn clear_block_download_requests(&mut self) {
|
||||
self.inflight_full_block_requests.clear();
|
||||
self.inflight_block_range_requests.clear();
|
||||
self.range_buffered_blocks.clear();
|
||||
self.update_block_download_metrics();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user