funding tx: use fees from config and set rbf

This commit is contained in:
ThomasV 2018-10-17 11:55:25 +02:00
parent 9de6028fb5
commit f8894d467f

View file

@ -454,7 +454,7 @@ class Peer(PrintError):
redeem_script = funding_output_script(local_config, remote_config)
funding_address = bitcoin.redeem_script_to_address('p2wsh', redeem_script)
funding_output = TxOutput(bitcoin.TYPE_ADDRESS, funding_address, funding_sat)
funding_tx = self.lnworker.wallet.mktx([funding_output], password, self.lnworker.config, 1000)
funding_tx = self.lnworker.wallet.mktx([funding_output], password, self.lnworker.config, rbf=True)
funding_txid = funding_tx.txid()
funding_index = funding_tx.outputs().index(funding_output)
# remote commitment transaction