commit c15cc42a32462edd314961e01b434dd01c6fb6d4
parent 496de038694b594af50e0eda7bf01bf02927c8ad
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 5 Mar 2020 14:52:56 +0100
fix for old channels
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/electrum/lnhtlc.py b/electrum/lnhtlc.py
@@ -25,6 +25,8 @@ class HTLCManager:
log[LOCAL] = deepcopy(initial)
log[REMOTE] = deepcopy(initial)
log['unacked_local_updates2'] = {}
+
+ if 'unfulfilled_htlcs' not in log:
log['unfulfilled_htlcs'] = {} # htlc_id -> onion_packet
# maybe bootstrap fee_updates if initial_feerate was provided