qml: pass updated fee policy to make_tx function when opening channel
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user