This commit is contained in:
dapplion
2025-06-11 11:02:37 +02:00
parent 6f754bfd8d
commit 28d9d8b8e2

View File

@@ -1080,7 +1080,7 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
.iter() .iter()
.filter(|&(_epoch, batch)| in_buffer(batch)) .filter(|&(_epoch, batch)| in_buffer(batch))
.count() .count()
>= self.batch_buffer_size as usize >= self.batch_buffer_size
{ {
return None; return None;
} }
@@ -1110,7 +1110,7 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
/// batch states. See [BatchState::visualize] for symbol definitions. /// batch states. See [BatchState::visualize] for symbol definitions.
#[instrument(parent = None,level = "info", fields(chain = self.id , service = "range_sync"), skip_all)] #[instrument(parent = None,level = "info", fields(chain = self.id , service = "range_sync"), skip_all)]
fn visualize_batch_state(&self) -> String { fn visualize_batch_state(&self) -> String {
let mut visualization_string = String::with_capacity((self.batch_buffer_size * 3) as usize); let mut visualization_string = String::with_capacity(self.batch_buffer_size * 3);
// Start of the block // Start of the block
visualization_string.push('['); visualization_string.push('[');