mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
fix re-signing offers with inexact amount reserved
This commit is contained in:
parent
2e57e6197d
commit
9004c7f32a
@ -962,9 +962,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// handle sufficient balance
|
// sign and post offer if enough funds
|
||||||
|
boolean hasFundsReserved = openOffer.getReserveTxHash() != null;
|
||||||
boolean hasSufficientBalance = xmrWalletService.getAvailableBalance().compareTo(amountNeeded) >= 0;
|
boolean hasSufficientBalance = xmrWalletService.getAvailableBalance().compareTo(amountNeeded) >= 0;
|
||||||
if (hasSufficientBalance) {
|
if (hasFundsReserved || hasSufficientBalance) {
|
||||||
signAndPostOffer(openOffer, true, resultHandler, errorMessageHandler);
|
signAndPostOffer(openOffer, true, resultHandler, errorMessageHandler);
|
||||||
return;
|
return;
|
||||||
} else if (openOffer.getScheduledTxHashes() == null) {
|
} else if (openOffer.getScheduledTxHashes() == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user