Account for stake held by the current node while waiting for the supermajority to join gossip (#7708)

automerge
This commit is contained in:
mergify[bot]
2020-01-07 22:13:44 -08:00
committed by Grimes
parent de941f4074
commit ed59c58a72
2 changed files with 5 additions and 1 deletions

View File

@@ -299,7 +299,7 @@ impl Validator {
if config.wait_for_supermajority {
info!(
"Waiting more than 66% of activated stake at slot {} to be in gossip...",
"Waiting for more than 66% of activated stake at slot {} to be in gossip...",
bank.slot()
);
loop {
@@ -630,6 +630,8 @@ fn get_stake_percent_in_gossip(
activated_stake
);
gossip_stake += activated_stake;
} else if vote_state.node_pubkey == cluster_info.read().unwrap().id() {
gossip_stake += activated_stake;
}
}