Skip to content

Commit

Permalink
Tone down the optimistic confirmation printing (solana-labs#21045)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge authored Oct 28, 2021
1 parent 4642a2c commit 7bb347f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3397,15 +3397,17 @@ fn do_test_optimistic_confirmation_violation_with_or_without_tower(with_tower: b
);

info!("Waiting for A to vote");
let mut last_print = Instant::now();
loop {
if let Some((last_vote_slot, _)) =
last_vote_in_tower(&val_a_ledger_path, &validator_a_pubkey)
{
if last_vote_slot >= next_slot_on_a {
info!("Validator A has caught up: {}", last_vote_slot);
break;
} else {
} else if last_print.elapsed().as_secs() >= 10 {
info!("Validator A latest vote: {}", last_vote_slot);
last_print = Instant::now();
}
}

Expand Down

0 comments on commit 7bb347f

Please sign in to comment.