Fix propagation on startup from snapshot (#12177)

This commit is contained in:
carllin
2020-09-11 02:03:11 -07:00
committed by GitHub
parent 484c8cb8a8
commit 9c490e06b0
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,