From b66c03667c8e7b51d312c669d822318637b4a893 Mon Sep 17 00:00:00 2001 From: carllin Date: Sun, 17 Nov 2019 17:10:16 -0800 Subject: [PATCH] Log for threshold failure (#7008) --- core/src/replay_stage.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 2dd73462b9..e35a104065 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -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());