tfollow-up previous commit - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 34d652b0f6445bde32a9f963f7f323476fd5630d DIR parent 11f1541cdd6ba56388b97b5cc23d589fc9a687bc HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 13 Dec 2019 11:09:18 +0100 follow-up previous commit Diffstat: M electrum/lnworker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -664,6 +664,7 @@ class LNWallet(LNWorker): # save timestamp regardless of state, so that funding tx is returned in get_history self.channel_timestamps[bh2u(chan.channel_id)] = chan.funding_outpoint.txid, funding_height.height, funding_height.timestamp, None, None, None + self.storage.put('lightning_channel_timestamps', self.channel_timestamps) if chan.get_state() == channel_states.OPEN and self.should_channel_be_closed_due_to_expiring_htlcs(chan): self.logger.info(f"force-closing due to expiring htlcs") t@@ -675,7 +676,6 @@ class LNWallet(LNWorker): self.save_short_chan_id(chan) if chan.short_channel_id: chan.set_state(channel_states.FUNDED) - self.storage.put('lightning_channel_timestamps', self.channel_timestamps) if chan.get_state() == channel_states.FUNDED: peer = self.peers.get(chan.node_id)