From c3fb79d412e0dc86b65f6ac8f117d28e0be08b4a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 17 Oct 2020 03:47:29 +0200 Subject: [PATCH] lnworker: make sure to save new channel before we broadcast see #6656 --- electrum/lnworker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 46ba5d612..94555a3da 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -828,6 +828,7 @@ class LNWallet(LNWorker): channels_db[chan.channel_id.hex()] = chan.storage for addr in chan.get_wallet_addresses_channel_might_want_reserved(): self.wallet.set_reserved_state_of_address(addr, reserved=True) + self.save_channel(chan) self.wallet.save_backup() def mktx_for_open_channel(self, *, coins: Sequence[PartialTxInput], funding_sat: int,