From e1399fb1ec1f6c21f9eaa5b604deb908f5dce183 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 30 Mar 2021 15:00:25 +0200 Subject: [PATCH] routing/router: use attempt's unique hash if set on restart --- routing/router.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routing/router.go b/routing/router.go index 7f54f915..7acfcaa8 100644 --- a/routing/router.go +++ b/routing/router.go @@ -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 }