paymod: Make the transition to FAILED a function call

We need to set some variables as well, and the transition to FAILED is a bit
special in that quite some modifiers will skip into FAILED.
This commit is contained in:
Christian Decker
2020-05-29 15:16:40 +02:00
parent 4a89819cdd
commit 2e88249a7b
3 changed files with 18 additions and 11 deletions

View File

@@ -1726,7 +1726,7 @@ static void init(struct plugin *p,
maxdelay_default = atoi(field);
}
struct payment_modifier *paymod_mods[3] = {
struct payment_modifier *paymod_mods[] = {
&local_channel_hints_pay_mod,
&retry_pay_mod,
NULL,