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 {