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.
This commit is contained in:
Andrey Samokhvalov 2017-03-06 17:00:32 +03:00 committed by Olaoluwa Osuntokun
parent a14f25830e
commit f774e3d9bf
1 changed files with 1 additions and 0 deletions

View File

@ -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,
}