From f774e3d9bf27be24b116c8860bca202c9c82585a Mon Sep 17 00:00:00 2001 From: Andrey Samokhvalov Date: Mon, 6 Mar 2017 17:00:32 +0300 Subject: [PATCH] lnwallet: add missed addition of RHash add rhash to the payment descriptor when receiving the settle htlc in order to be able to pass it during settle htlc packet generation and later find the user pending payment by rhash without additional hashing. --- lnwallet/channel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 34698927..2aba8a57 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -2251,6 +2251,7 @@ func (lc *LightningChannel) ReceiveHTLCSettle(preimage [32]byte, logIndex uint64 Amount: htlc.Amount, RPreimage: preimage, ParentIndex: htlc.Index, + RHash: htlc.RHash, Index: lc.remoteUpdateLog.logIndex, EntryType: Settle, }