diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 7f06b14..ac2fece 100755 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -834,7 +834,7 @@ class SpendTab(QWidget): # for coinjoin sends no point to send below dust threshold, likely # there will be no makers for such amount. - if amount != 0 and not self.checkAmount(amount): + if amount != 0 and makercount > 0 and not self.checkAmount(amount): return if makercount < jm_single().config.getint( diff --git a/scripts/sendpayment.py b/scripts/sendpayment.py index 630b94f..6007828 100755 --- a/scripts/sendpayment.py +++ b/scripts/sendpayment.py @@ -111,7 +111,7 @@ def main(): jmprint("The required options for burning coins are zero makers" + " (-N 0), sweeping (amount = 0) and not using BIP78 Payjoin", "info") sys.exit(EXIT_ARGERROR) - if sweeping == False and amount < jm_single().DUST_THRESHOLD: + if sweeping == False and options.makercount > 0 and amount < jm_single().DUST_THRESHOLD: jmprint('ERROR: Amount ' + btc.amount_to_str(amount) + ' is below dust threshold ' + btc.amount_to_str(jm_single().DUST_THRESHOLD) + '.', "error")