Log for threshold failure (#7008)
This commit is contained in:
parent
6e04a646ba
commit
b66c03667c
|
@ -719,13 +719,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());
|
||||||
|
|
Loading…
Reference in New Issue