From 7cba9b8f8f02755a5df545232388374c5b86e59c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 15 Sep 2021 07:55:17 +0000 Subject: [PATCH] Add an info log to indicate the node has reached supermajority and print the active stake percentage (#19893) (#19897) (cherry picked from commit 4ff50519ffdb01a5d50084df77f21694c888fd2c) Co-authored-by: Michael <68944931+michaelh-laine@users.noreply.github.com> --- core/src/validator.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/validator.rs b/core/src/validator.rs index 41ac91745c..d8320a9943 100644 --- a/core/src/validator.rs +++ b/core/src/validator.rs @@ -1411,6 +1411,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