This allows us to detect if a bad node always answers with a new update (e.g.
This allows us to detect if a bad node always answers with a new update (e.g. with a slightly different expiry or fee) in order to mess with us.
Rewrites a list of failures to retrieve the meaningful part.
Rewrites a list of failures to retrieve the meaningful part.
If a list of failures with many elements ends up with a LocalFailure RouteNotFound, this RouteNotFound failure should be removed. This last failure is irrelevant information. In such a case only the n-1 attempts were rejected with a **significant reason**; the final RouteNotFound error provides no meaningful insight.
This method should be used by the user interface to provide a non-exhaustive but more useful feedback.
a list of payment failures for a payment
(Since version ) see corresponding Javadoc for more information.