Skip to content

Commit 76f45eb

Browse files
committed
bugfix: do not panic with short slot times
1 parent 0cd0d13 commit 76f45eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mev-build-rs/src/auctioneer/service.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,12 @@ impl<
278278
}
279279

280280
async fn submit_payload(&self, payload: EthBuiltPayload) {
281-
let auction = self.open_auctions.get(&payload.id()).expect("has auction");
281+
// TODO: resolve hot fix for short slot timings
282+
let auction = self.open_auctions.get(&payload.id());
283+
if auction.is_none() {
284+
return
285+
}
286+
let auction = auction.unwrap();
282287
let mut successful_relays_for_submission = Vec::with_capacity(auction.relays.len());
283288
match prepare_submission(
284289
&payload,

0 commit comments

Comments
 (0)