From 1406142af879567c214605b5a8189acf909b62b1 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 19 Sep 2023 17:48:34 +0200 Subject: [PATCH] fix: clear buffered blocks on sync (#4658) --- crates/consensus/beacon/src/engine/sync.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/consensus/beacon/src/engine/sync.rs b/crates/consensus/beacon/src/engine/sync.rs index 2042dd1429..fa5cfe842e 100644 --- a/crates/consensus/beacon/src/engine/sync.rs +++ b/crates/consensus/beacon/src/engine/sync.rs @@ -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(); }