Change "Offer expired" from an error to a debug message.

This commit is contained in:
tecnovert 2024-11-25 23:01:19 +02:00
parent 33105a832f
commit 3ba2145cc9
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -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