commit 947211fe4ecde0488063b3f54dc5e46424b098b5
parent 36629f095791fdbf592c601243f03c96dd15de3b
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 23 Feb 2020 20:43:23 +0100
follow-up 54ef6db762b5ea120a59af0a2470eac999c55d93: set channel state to OPENING if funding tx was broadcast later (e.g. cold storage)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/electrum/lnworker.py b/electrum/lnworker.py
@@ -666,6 +666,9 @@ class LNWallet(LNWorker):
await self.force_close_channel(chan.channel_id)
return
+ if chan.get_state() == channel_states.PREOPENING:
+ chan.set_state(channel_states.OPENING)
+
if chan.get_state() == channel_states.OPENING:
if chan.short_channel_id is None:
self.save_short_chan_id(chan)