mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
paymod: Add a retry modifier that retries payments on failure
This is likely a bit of overkill for this type of functionality, but it is a nice first use-case of how functionality can be compartmentalized into modifiers. If makes swapping retry mechanisms in and out really simple.
This commit is contained in:
@@ -145,6 +145,10 @@ struct dummy_data {
|
||||
unsigned int *dummy_param;
|
||||
};
|
||||
|
||||
struct retry_mod_data {
|
||||
int retries;
|
||||
};
|
||||
|
||||
/* List of globally available payment modifiers. */
|
||||
extern struct payment_modifier dummy_pay_mod;
|
||||
REGISTER_PAYMENT_MODIFIER_HEADER(retry, struct retry_mod_data);
|
||||
|
||||
Reference in New Issue
Block a user