From 3f25a756eae1db795959ab29047607aad0b6252a Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 23 Jul 2022 12:52:39 -0400 Subject: [PATCH] fix legacy app freeze if insufficient funds to schedule offer --- core/src/main/java/bisq/core/offer/OpenOfferManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/offer/OpenOfferManager.java b/core/src/main/java/bisq/core/offer/OpenOfferManager.java index efa4bf7900..0cf1b6c748 100644 --- a/core/src/main/java/bisq/core/offer/OpenOfferManager.java +++ b/core/src/main/java/bisq/core/offer/OpenOfferManager.java @@ -692,7 +692,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe } if (scheduledAmount.compareTo(offerReserveAmount) >= 0) break; } - if (scheduledAmount.compareTo(offerReserveAmount) < 0) throw new Error("Not enough funds to schedule offer"); + if (scheduledAmount.compareTo(offerReserveAmount) < 0) throw new RuntimeException("Not enough funds to schedule offer"); // schedule txs openOffer.setScheduledTxHashes(scheduledTxHashes);