routing: report failures to mission control directly

As there is no more state kept in the payment session, failure reporting
can go straight to mission control.
This commit is contained in:
Joost Jager committed 2019-07-13 22:38:25 +02:00
1 parent dc13da5abb
commit 8055bcf2e0
3 files changed
+18 -85

No files matched your search

+1 -1
View File
@@ -343,7 +343,7 @@ func (p *paymentLifecycle) sendPaymentAttempt(firstHop lnwire.ShortChannelID,
func (p *paymentLifecycle) handleSendError(sendErr error) error {
final, reason := p.router.processSendError(
p.paySession, &p.attempt.Route, sendErr,
&p.attempt.Route, sendErr,
)
if !final {
// Save the forwarding error so it can be returned if