Log for threshold failure (#7008) (#7009)

automerge
This commit is contained in:
mergify[bot]
2019-11-17 17:34:44 -08:00
committed by Grimes
parent 7dd6ceeb49
commit 207b80035e

View File

@ -707,13 +707,18 @@ impl ReplayStage {
stats.weight = tower.calculate_weight(&stake_lockouts); stats.weight = tower.calculate_weight(&stake_lockouts);
stats.stake_lockouts = stake_lockouts; stats.stake_lockouts = stake_lockouts;
stats.block_height = bank.block_height(); stats.block_height = bank.block_height();
stats.computed = true;
} }
stats.vote_threshold = tower.check_vote_stake_threshold( stats.vote_threshold = tower.check_vote_stake_threshold(
bank.slot(), bank.slot(),
&stats.stake_lockouts, &stats.stake_lockouts,
stats.total_staked, stats.total_staked,
); );
if !stats.computed {
if !stats.vote_threshold {
info!("vote threshold check failed: {}", bank.slot());
}
stats.computed = true;
}
stats.is_locked_out = tower.is_locked_out(bank.slot(), &ancestors); stats.is_locked_out = tower.is_locked_out(bank.slot(), &ancestors);
stats.has_voted = tower.has_voted(bank.slot()); stats.has_voted = tower.has_voted(bank.slot());
stats.is_recent = tower.is_recent(bank.slot()); stats.is_recent = tower.is_recent(bank.slot());