Skip to content

Commit

Permalink
fix re-signing offers with inexact amount reserved
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Aug 3, 2024
1 parent 2e57e61 commit 9004c7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/haveno/core/offer/OpenOfferManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,10 @@ private void doProcessPendingOffer(List<OpenOffer> openOffers, OpenOffer openOff
}
} 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) {
Expand Down

0 comments on commit 9004c7f

Please sign in to comment.