From 189390fb2d159413c5579fc12d8aa0092f8187da Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 26 May 2022 18:08:15 +0200 Subject: [PATCH] qt new_channel_dialog: use lnutil.MIN_FUNDING_SAT instead of ad-hoc val --- electrum/gui/qt/new_channel_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/new_channel_dialog.py b/electrum/gui/qt/new_channel_dialog.py index 2564e4537..8e529d4e6 100644 --- a/electrum/gui/qt/new_channel_dialog.py +++ b/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: