From 96f2f3b3eccc27796b6579ffe86de85e4d11e93e Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 16 May 2024 09:57:08 +0300 Subject: [PATCH] hotfix for short slots --- mev-build-rs/src/auctioneer/service.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mev-build-rs/src/auctioneer/service.rs b/mev-build-rs/src/auctioneer/service.rs index 713b8319..27f20b7d 100644 --- a/mev-build-rs/src/auctioneer/service.rs +++ b/mev-build-rs/src/auctioneer/service.rs @@ -286,7 +286,12 @@ impl< } async fn submit_payload(&self, payload: EthBuiltPayload) { - let auction = self.open_auctions.get(&payload.id()).expect("has auction"); + // TODO: resolve hot fix for short slot timings + let auction = self.open_auctions.get(&payload.id()); + if auction.is_none() { + return + } + let auction = auction.unwrap(); let mut successful_relays_for_submission = Vec::with_capacity(auction.relays.len()); match prepare_submission( &payload,