Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1365: Allow amounts below `DUST_THRESHOLD` (0.00027300 BTC) for non-cj direct sends

d6d40df606 Allow amounts below DUST_THRESHOLD (0.00027300 BTC) for non-cj direct sends (Kristaps Kaupe)

Pull request description:

  Don't see the reason why to enforce this lowest amount limit for non-collaborative transactions.

  Note that lower amount sends were already allowed when doing sweeping.

Top commit has no ACKs.

Tree-SHA512: c6e33372b36a6fc03f8050e827c9b1b14da43edddb718e1ad153a8ebdbfed5ff7e9332b784bea314aab460afe0b574b8cf40cf0523b3a773bf657a22b67c12db
master
Kristaps Kaupe 3 years ago
parent
commit
0ea0f5bb29
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      scripts/joinmarket-qt.py
  2. 2
      scripts/sendpayment.py

2
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(

2
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")

Loading…
Cancel
Save