From d6d40df606b2dcccdd6e8ca75a0f8e1e5005973a Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 28 Sep 2022 17:20:29 +0300 Subject: [PATCH] Allow amounts below DUST_THRESHOLD (0.00027300 BTC) for non-cj direct sends --- scripts/joinmarket-qt.py | 2 +- scripts/sendpayment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")