Skip to content

Commit b024462

Browse files
committed
bugfix(boost): genesis handling
1 parent a10eb12 commit b024462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mev-boost-rs/src/relay_mux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl RelayMux {
131131

132132
pub fn on_slot(&self, slot: Slot) {
133133
debug!(slot, "processing");
134-
let retain_slot = slot - AUCTION_LIFETIME;
134+
let retain_slot = slot.checked_sub(AUCTION_LIFETIME).unwrap_or_default();
135135
let mut state = self.state.lock();
136136
state.outstanding_bids.retain(|_, auction| auction.slot >= retain_slot);
137137
}

0 commit comments

Comments
 (0)