Log for threshold failure (#7008)

This commit is contained in:
carllin 2019-11-17 17:10:16 -08:00 committed by GitHub
parent 6e04a646ba
commit b66c03667c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -719,13 +719,18 @@ impl ReplayStage {
stats.weight = tower.calculate_weight(&stake_lockouts);
stats.stake_lockouts = stake_lockouts;
stats.block_height = bank.block_height();
stats.computed = true;
}
stats.vote_threshold = tower.check_vote_stake_threshold(
bank.slot(),
&stats.stake_lockouts,
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.has_voted = tower.has_voted(bank.slot());
stats.is_recent = tower.is_recent(bank.slot());