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:
Christian Decker
2020-05-08 16:51:43 +02:00
parent aeb5cc0b7c
commit 5c32e33aab
3 changed files with 42 additions and 1 deletions

View File

@@ -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,
};