1
0

qml: pass updated fee policy to make_tx function when opening channel

This commit is contained in:
f321x
2025-04-07 14:08:15 +02:00
parent 746c13b32d
commit 23c0887a5c
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)