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.
2 parents 5278d2c + 3dcf018 commit f9e9980Copy full SHA for f9e9980
node/src/block_producer/block_producer_state.rs
@@ -319,6 +319,10 @@ impl BlockProducerCurrentState {
319
&self,
320
best_tip: &ArcBlockWithHash,
321
) -> Option<BlockProducerWonSlotDiscardReason> {
322
+ if matches!(self, Self::WonSlotDiscarded { .. }) {
323
+ return None;
324
+ }
325
+
326
let won_slot = self.won_slot()?;
327
if won_slot.global_slot() < best_tip.global_slot() {
328
return Some(BlockProducerWonSlotDiscardReason::BestTipGlobalSlotHigher);
0 commit comments