Fix propagation on startup from snapshot (#12177) (#12182)

(cherry picked from commit 9c490e06b0)

Co-authored-by: carllin <wumu727@gmail.com>
This commit is contained in:
mergify[bot]
2020-09-11 10:04:55 +00:00
committed by GitHub
parent bbddffa805
commit db1f57162a
2 changed files with 75 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ impl ForkProgress {
num_dropped_blocks_on_fork: u64,
) -> Self {
let validator_fork_info = {
if bank.collector_id() == my_pubkey && bank.slot() > 0 {
if bank.collector_id() == my_pubkey {
let stake = bank.epoch_vote_account_stake(voting_pubkey);
Some(ValidatorStakeInfo::new(
*voting_pubkey,