mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
@@ -1704,8 +1704,9 @@ static void init(struct plugin *p,
|
||||
}
|
||||
|
||||
#if DEVELOPER
|
||||
struct payment_modifier *paymod_mods[2] = {
|
||||
struct payment_modifier *paymod_mods[3] = {
|
||||
&dummy_pay_mod,
|
||||
&retry_pay_mod,
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user