routing: return full htlc attempt from router
This commit is contained in:
4 files changed
+44
-29
No files matched your search
+6
-1
@@ -3978,10 +3978,15 @@ func (r *rpcServer) dispatchPaymentIntent(
|
||||
payment,
|
||||
)
|
||||
} else {
|
||||
preImage, routerErr = r.server.chanRouter.SendToRoute(
|
||||
var attempt *channeldb.HTLCAttempt
|
||||
attempt, routerErr = r.server.chanRouter.SendToRoute(
|
||||
payIntent.rHash, payIntent.route,
|
||||
)
|
||||
|
||||
if routerErr == nil {
|
||||
preImage = attempt.Settle.Preimage
|
||||
}
|
||||
|
||||
route = payIntent.route
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user