From 3ba2145cc9ce3f3507475c1beadac02a6e19519d Mon Sep 17 00:00:00 2001 From: tecnovert Date: Mon, 25 Nov 2024 23:01:19 +0200 Subject: [PATCH] Change "Offer expired" from an error to a debug message. --- basicswap/basicswap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 0888d07..504a0b5 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -7010,7 +7010,9 @@ class BasicSwap(BaseApp): offer_data.swap_type, coin_from, coin_to, offer_data.time_valid ) - ensure(msg["sent"] + offer_data.time_valid >= now, "Offer expired") + if msg["sent"] + offer_data.time_valid >= now: + self.log.debug("Ignoring expired offer.") + return offer_rate: int = ci_from.make_int( offer_data.amount_to / offer_data.amount_from, r=1