routing: return full htlc attempt from router

This commit is contained in:
Joost Jager committed 2020-05-12 19:56:52 +02:00
1 parent cc37485432
commit 674c199047
4 files changed
+44 -29

No files matched your search

+6 -1
View File
@@ -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
}