From e90800884a6c055e4eda2404748ad8a87c65079b Mon Sep 17 00:00:00 2001 From: tecnovert Date: Tue, 26 Nov 2024 10:50:21 +0200 Subject: [PATCH] Fix expired offer check. --- basicswap/basicswap.py | 2 +- doc/release-notes.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 7c550aa..94c56b9 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -6998,7 +6998,7 @@ class BasicSwap(BaseApp): offer_data.swap_type, coin_from, coin_to, offer_data.time_valid ) - if msg["sent"] + offer_data.time_valid >= now: + if msg["sent"] + offer_data.time_valid < now: self.log.debug("Ignoring expired offer.") return diff --git a/doc/release-notes.md b/doc/release-notes.md index cf230c1..eb48b38 100644 --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -6,6 +6,7 @@ - Mercy outputs on swipe txns of BTC descended coins. - Disable by setting 'altruistic' to false in basicswap.json - Removed sqlalchemy. +- Incoming expired offers no longer raise an error.