lnwallet: mark HTLCs modified for updates restored in restoreStageLogs

This commit is contained in:
Olaoluwa Osuntokun committed 2018-05-25 20:26:01 -07:00
1 parent 1f1f22cfe8
commit b6d046ad84
1 file changed
+3
+3
View File
@@ -1773,9 +1773,12 @@ func (lc *LightningChannel) restoreStateLogs(
"%v vs %v", payDesc.HtlcIndex, "%v vs %v", payDesc.HtlcIndex,
lc.localUpdateLog.htlcCounter)) lc.localUpdateLog.htlcCounter))
} }
lc.localUpdateLog.appendHtlc(payDesc) lc.localUpdateLog.appendHtlc(payDesc)
} else { } else {
lc.localUpdateLog.appendUpdate(payDesc) lc.localUpdateLog.appendUpdate(payDesc)
lc.remoteUpdateLog.markHtlcModified(payDesc.ParentIndex)
} }
} }