From 23c0887a5c7f711cd0a7e77b5fb17242dee00075 Mon Sep 17 00:00:00 2001 From: f321x Date: Mon, 7 Apr 2025 14:08:15 +0200 Subject: [PATCH] qml: pass updated fee policy to make_tx function when opening channel --- electrum/gui/qml/qechannelopener.py | 3 +-- electrum/gui/qml/qetxfinalizer.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/qechannelopener.py b/electrum/gui/qml/qechannelopener.py index 67f12a591..4f769630a 100644 --- a/electrum/gui/qml/qechannelopener.py +++ b/electrum/gui/qml/qechannelopener.py @@ -170,9 +170,8 @@ class QEChannelOpener(QObject, AuthMixin): self._logger.debug('amount = %s' % str(amount)) coins = self._wallet.wallet.get_spendable_coins(None, nonlocal_only=True) - fee_policy = FeePolicy(self._wallet.wallet.config.FEE_POLICY) - mktx = lambda amt: lnworker.mktx_for_open_channel( + mktx = lambda amt, fee_policy: lnworker.mktx_for_open_channel( coins=coins, funding_sat=amt, node_id=self._node_pubkey, diff --git a/electrum/gui/qml/qetxfinalizer.py b/electrum/gui/qml/qetxfinalizer.py index e8118a766..867bd211b 100644 --- a/electrum/gui/qml/qetxfinalizer.py +++ b/electrum/gui/qml/qetxfinalizer.py @@ -380,7 +380,7 @@ class QETxFinalizer(TxFeeSlider): self._logger.debug(f'make_tx amount={amount}') if self.f_make_tx: - tx = self.f_make_tx(amount) + tx = self.f_make_tx(amount, self._fee_policy) else: # default impl coins = self._wallet.wallet.get_spendable_coins(None)