From b6d046ad84910e542c084669f0b2892c43d36ba0 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 25 May 2018 18:39:16 -0700 Subject: [PATCH] lnwallet: mark HTLCs modified for updates restored in restoreStageLogs --- lnwallet/channel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 02b7d07e..a66fc974 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1773,9 +1773,12 @@ func (lc *LightningChannel) restoreStateLogs( "%v vs %v", payDesc.HtlcIndex, lc.localUpdateLog.htlcCounter)) } + lc.localUpdateLog.appendHtlc(payDesc) } else { lc.localUpdateLog.appendUpdate(payDesc) + + lc.remoteUpdateLog.markHtlcModified(payDesc.ParentIndex) } }