routing/router: use attempt's unique hash if set on restart
This commit is contained in:
parent
06f045fca3
commit
e1399fb1ec
@ -609,7 +609,14 @@ func (r *ChannelRouter) Start() error {
|
|||||||
for _, a := range payment.HTLCs {
|
for _, a := range payment.HTLCs {
|
||||||
a := a
|
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
|
hash := payment.Info.PaymentHash
|
||||||
|
if a.Hash != nil {
|
||||||
|
hash = *a.Hash
|
||||||
|
}
|
||||||
|
|
||||||
htlcs[a.AttemptID] = hash
|
htlcs[a.AttemptID] = hash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user