mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user