From f8894d467fea17dff44b9306072fe3697cdbb603 Mon Sep 17 00:00:00 2001
From: ThomasV <thomasv@electrum.org>
Date: Wed, 17 Oct 2018 11:55:25 +0200
Subject: [PATCH] funding tx: use fees from config and set rbf

---
 electrum/lnbase.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/lnbase.py b/electrum/lnbase.py
index 8c2a9b222..2d81eb46c 100644
--- a/electrum/lnbase.py
+++ b/electrum/lnbase.py
@@ -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