From 22ed36bc6a58a768c0baaa7e80cf44647cea73ee Mon Sep 17 00:00:00 2001 From: realbigsean Date: Fri, 16 Dec 2022 15:16:17 -0500 Subject: [PATCH] fix is_empty check --- beacon_node/network/src/sync/network_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/network/src/sync/network_context.rs b/beacon_node/network/src/sync/network_context.rs index 94801aa87..5a96e1924 100644 --- a/beacon_node/network/src/sync/network_context.rs +++ b/beacon_node/network/src/sync/network_context.rs @@ -50,7 +50,7 @@ impl BlockBlobRequestInfo { } pub fn pop_response(&mut self) -> Option> { - if !self.accumulated_blocks.is_empty() && !self.accumulated_blocks.is_empty() { + if !self.accumulated_blocks.is_empty() && !self.accumulated_sidecars.is_empty() { let beacon_block = self.accumulated_blocks.pop_front().expect("non empty"); let blobs_sidecar = self.accumulated_sidecars.pop_front().expect("non empty"); return Some(SignedBeaconBlockAndBlobsSidecar {