Add an info log to indicate the node has reached supermajority and print the active stake percentage (#19893)

This commit is contained in:
Michael 2021-09-15 05:48:15 +02:00 committed by GitHub
parent 229b378ed1
commit 4ff50519ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1472,6 +1472,10 @@ fn wait_for_supermajority(
let gossip_stake_percent = get_stake_percent_in_gossip(bank, cluster_info, i % 10 == 0);
if gossip_stake_percent >= WAIT_FOR_SUPERMAJORITY_THRESHOLD_PERCENT {
info!(
"Supermajority reached, {}% active stake detected, starting up now.",
gossip_stake_percent,
);
break;
}
// The normal RPC health checks don't apply as the node is waiting, so feign health to