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 a10eb12 commit b024462Copy full SHA for b024462
mev-boost-rs/src/relay_mux.rs
@@ -131,7 +131,7 @@ impl RelayMux {
131
132
pub fn on_slot(&self, slot: Slot) {
133
debug!(slot, "processing");
134
- let retain_slot = slot - AUCTION_LIFETIME;
+ let retain_slot = slot.checked_sub(AUCTION_LIFETIME).unwrap_or_default();
135
let mut state = self.state.lock();
136
state.outstanding_bids.retain(|_, auction| auction.slot >= retain_slot);
137
}
0 commit comments