lnwallet: restore missing field in local log update

When restoring an htlc fulfill update from disk, the payment hash wasn't
restored previously.
This commit is contained in:
Joost Jager committed 2020-01-06 15:13:21 +01:00
1 parent 22e1f006b1
commit b3bd470962
1 file changed
+1
+1
View File
@@ -1564,6 +1564,7 @@ func (lc *LightningChannel) logUpdateToPayDesc(logUpdate *channeldb.LogUpdate,
pd = &PaymentDescriptor{ pd = &PaymentDescriptor{
Amount: ogHTLC.Amount, Amount: ogHTLC.Amount,
RHash: ogHTLC.RHash,
RPreimage: wireMsg.PaymentPreimage, RPreimage: wireMsg.PaymentPreimage,
LogIndex: logUpdate.LogIndex, LogIndex: logUpdate.LogIndex,
ParentIndex: ogHTLC.HtlcIndex, ParentIndex: ogHTLC.HtlcIndex,