mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
fix re-signing offers with inexact amount reserved
This commit is contained in:
parent
2e57e6197d
commit
9004c7f32a
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue