We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b29da commit ae9057eCopy full SHA for ae9057e
node/src/block_producer/block_producer_state.rs
@@ -223,7 +223,10 @@ impl BlockProducerCurrentState {
223
if won_slot.global_slot_since_genesis.as_u32() < best_tip.global_slot() {
224
return Some(BlockProducerWonSlotDiscardReason::BestTipGlobalSlotHigher);
225
}
226
- // TODO(binier): check if staking ledger changed
+
227
+ if &won_slot.staking_ledger_hash != best_tip.staking_epoch_ledger_hash() {
228
+ return Some(BlockProducerWonSlotDiscardReason::BestTipStakingLedgerDifferent);
229
+ }
230
231
if won_slot < best_tip
232
|| self.produced_block().map_or(false, |block| {
0 commit comments