Browse Source

qt new_channel_dialog: use lnutil.MIN_FUNDING_SAT instead of ad-hoc val

patch-4
SomberNight 3 years ago
parent
commit
189390fb2d
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/gui/qt/new_channel_dialog.py

4
electrum/gui/qt/new_channel_dialog.py

@ -4,7 +4,7 @@ from PyQt5.QtWidgets import QLabel, QVBoxLayout, QGridLayout, QPushButton, QComb
from electrum.i18n import _
from electrum.transaction import PartialTxOutput, PartialTransaction
from electrum.lnutil import LN_MAX_FUNDING_SAT
from electrum.lnutil import LN_MAX_FUNDING_SAT, MIN_FUNDING_SAT
from electrum.lnworker import hardcoded_trampoline_nodes
from electrum import ecc
from electrum.util import NotEnoughFunds, NoDynamicFeeEstimates
@ -30,7 +30,7 @@ class NewChannelDialog(WindowModalDialog):
self.lnworker = self.window.wallet.lnworker
self.trampolines = hardcoded_trampoline_nodes()
self.trampoline_names = list(self.trampolines.keys())
self.min_amount_sat = min_amount_sat or 10_000
self.min_amount_sat = min_amount_sat or MIN_FUNDING_SAT
vbox = QVBoxLayout(self)
msg = _('Choose a remote node and an amount to fund the channel.')
if min_amount_sat:

Loading…
Cancel
Save