Skip to content

Commit

Permalink
fix: clear buffered blocks on sync (#4658)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Sep 19, 2023
1 parent a80b720 commit 1406142
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/consensus/beacon/src/engine/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 1406142

Please sign in to comment.