paymod: Routehintmod signals that we can retry if getroute fails

The shortcut in the retry_mod that we can skip retrying if getroute fails or
we have no result is only valid if the parameters don't change. As we iterate
through the routehints the parameters change, and so we must signal to the
retry_mod that it can retry even in those cases.
This commit is contained in:
Christian Decker
2020-07-23 16:07:39 +02:00
parent 52a8b8f9e7
commit 85ec438d34
2 changed files with 17 additions and 2 deletions

View File

@@ -255,6 +255,13 @@ struct payment {
/* Human readable explanation of why this payment failed. */
const char *failreason;
/* If a failed getroute call can be retried for this payment. Allows
* us for example to signal to any retry modifier that we can retry
* despite getroute not returning a usable route. This can be the case
* if we switch any of the parameters such as destination or
* amount. */
bool failroute_retry;
};
struct payment_modifier {