1
0

Merge pull request #9709 from f321x/fix_fee_slider_qml_channel_open

qml: pass updated fee policy to make_tx function when opening channel
This commit is contained in:
ThomasV
2025-04-07 15:05:53 +02:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -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,

View File

@@ -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)