From 9004c7f32a5e1e4c10676bce3145352d96f58da0 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 1 Aug 2024 10:13:39 -0400 Subject: [PATCH] fix re-signing offers with inexact amount reserved --- core/src/main/java/haveno/core/offer/OpenOfferManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/haveno/core/offer/OpenOfferManager.java b/core/src/main/java/haveno/core/offer/OpenOfferManager.java index 282249d4..eab1baff 100644 --- a/core/src/main/java/haveno/core/offer/OpenOfferManager.java +++ b/core/src/main/java/haveno/core/offer/OpenOfferManager.java @@ -962,9 +962,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe } } else { - // handle sufficient balance + // sign and post offer if enough funds + boolean hasFundsReserved = openOffer.getReserveTxHash() != null; boolean hasSufficientBalance = xmrWalletService.getAvailableBalance().compareTo(amountNeeded) >= 0; - if (hasSufficientBalance) { + if (hasFundsReserved || hasSufficientBalance) { signAndPostOffer(openOffer, true, resultHandler, errorMessageHandler); return; } else if (openOffer.getScheduledTxHashes() == null) {