Skip to content

Commit bef3344

Browse files
committed
Logging for testing
1 parent 1eee636 commit bef3344

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

beacon_node/beacon_chain/src/data_availability_checker/overflow_lru_cache.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,11 @@ impl<T: BeaconChainTypes> DataAvailabilityCheckerInner<T> {
576576

577577
pending_components.reconstruction_started = true;
578578

579+
debug!(received_column_count, "Starting wait for more cols...");
580+
579581
// Instead of starting to reconstruct immediately, wait for more columns to arrive
580582
drop(write_lock);
583+
let mut iter = 1;
581584
loop {
582585
sleep(Duration::from_millis(25));
583586
let mut write_lock = self.critical.write();
@@ -589,16 +592,21 @@ impl<T: BeaconChainTypes> DataAvailabilityCheckerInner<T> {
589592

590593
// Check if there is still a need to reconstruct.
591594
if new_received_column_count >= total_column_count {
595+
debug!(iter, new_received_column_count, "Got all!");
592596
return ReconstructColumnsDecision::No("all columns received");
593597
}
594598

595599
// Check if no new column arrived.
596600
if new_received_column_count == received_column_count {
601+
debug!(iter, new_received_column_count, "No new cols :/");
597602
return ReconstructColumnsDecision::Yes(pending_components.verified_data_columns.clone());
598603
}
599604

605+
debug!(iter, new_received_column_count, "Waiting for more cols...");
606+
600607
// Update count for next check.
601608
received_column_count = new_received_column_count;
609+
iter += 1;
602610
}
603611
}
604612

0 commit comments

Comments
 (0)