From c4ea20394dbecd92fa2f32e92f11d479601ca389 Mon Sep 17 00:00:00 2001 From: Richard Janis Goldschmidt Date: Wed, 4 Dec 2024 19:32:58 +0100 Subject: [PATCH] not receiving winning bids does not constitute an error for auctioneer: just log and return --- .../astria-auctioneer/src/auctioneer/inner/auction/worker.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/astria-auctioneer/src/auctioneer/inner/auction/worker.rs b/crates/astria-auctioneer/src/auctioneer/inner/auction/worker.rs index c76286e6da..7f1bd5c179 100644 --- a/crates/astria-auctioneer/src/auctioneer/inner/auction/worker.rs +++ b/crates/astria-auctioneer/src/auctioneer/inner/auction/worker.rs @@ -140,7 +140,10 @@ impl Worker { } }; - let winner = auction_result.ok_or_eyre("auction ended with no winning bid")?; + let Some(winner) = auction_result else { + info!("auction ended with no winning bid"); + return Ok(()); + }; // TODO: report the pending nonce that we ended up using. let transaction = Arc::unwrap_or_clone(winner)