Validator: Periodically log what we're waiting for during --wait-for-supermajority (#13531)

(cherry picked from commit 38f15e41b5)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-11-11 21:29:50 +00:00
committed by GitHub
parent 15a2c73826
commit 4f247a232f

View File

@ -1015,11 +1015,14 @@ fn wait_for_supermajority(
}
}
info!(
"Waiting for 80% of activated stake at slot {} to be in gossip...",
bank.slot()
);
for i in 1.. {
if i % 10 == 1 {
info!(
"Waiting for 80% of activated stake at slot {} to be in gossip...",
bank.slot()
);
}
let gossip_stake_percent = get_stake_percent_in_gossip(&bank, &cluster_info, i % 10 == 0);
if gossip_stake_percent >= 80 {