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:
@@ -170,9 +170,8 @@ class QEChannelOpener(QObject, AuthMixin):
|
|||||||
self._logger.debug('amount = %s' % str(amount))
|
self._logger.debug('amount = %s' % str(amount))
|
||||||
|
|
||||||
coins = self._wallet.wallet.get_spendable_coins(None, nonlocal_only=True)
|
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,
|
coins=coins,
|
||||||
funding_sat=amt,
|
funding_sat=amt,
|
||||||
node_id=self._node_pubkey,
|
node_id=self._node_pubkey,
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ class QETxFinalizer(TxFeeSlider):
|
|||||||
self._logger.debug(f'make_tx amount={amount}')
|
self._logger.debug(f'make_tx amount={amount}')
|
||||||
|
|
||||||
if self.f_make_tx:
|
if self.f_make_tx:
|
||||||
tx = self.f_make_tx(amount)
|
tx = self.f_make_tx(amount, self._fee_policy)
|
||||||
else:
|
else:
|
||||||
# default impl
|
# default impl
|
||||||
coins = self._wallet.wallet.get_spendable_coins(None)
|
coins = self._wallet.wallet.get_spendable_coins(None)
|
||||||
|
|||||||
Reference in New Issue
Block a user