Tone down the optimistic confirmation printing (#21045)

This commit is contained in:
sakridge 2021-10-28 06:14:36 -07:00 committed by GitHub
parent 4642a2c856
commit 7bb347faac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3397,6 +3397,7 @@ 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)
@ -3404,8 +3405,9 @@ fn do_test_optimistic_confirmation_violation_with_or_without_tower(with_tower: b
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();
}
}