mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 06:21:40 +01:00
routing/router: use attempt's unique hash if set on restart
This commit is contained in:
parent
06f045fca3
commit
e1399fb1ec
1 changed files with 7 additions and 0 deletions
|
@ -609,7 +609,14 @@ func (r *ChannelRouter) Start() error {
|
|||
for _, a := range payment.HTLCs {
|
||||
a := a
|
||||
|
||||
// We check whether the individual attempts
|
||||
// have their HTLC hash set, if not we'll fall
|
||||
// back to the overall payment hash.
|
||||
hash := payment.Info.PaymentHash
|
||||
if a.Hash != nil {
|
||||
hash = *a.Hash
|
||||
}
|
||||
|
||||
htlcs[a.AttemptID] = hash
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue