How does lnd make sure it does not reuse the same route twice for a retry after the first payment failed?

by wtho   Last Updated October 18, 2019 16:27 PM - source

Suppose LND node A wants to send a payment to another node D. The pathfind algorithm based on Dijkstra found a route through B and C and initiates the payment. It fails, as B -> C does not have sufficient balance/bandwidth.

Will LND just fail the payment or try another time with a different route? How does it remember the failed route?

Follow-up question: Can node A figure out, which edge failed?

Related Questions

Reuse of payment hash in Lightning Network

Updated June 07, 2020 05:27 AM

How to send payment through a predefined route?

Updated February 07, 2019 14:27 PM

How to send a payment through a route saved in a json?

Updated February 11, 2019 11:27 AM

Minimum funds required in a channel in Lightning?

Updated November 05, 2018 18:27 PM