paymod: Add a simple test-command to test the paymod state-machine

This commit can be reverted/skipped once we have implemented all the logic and
have feature parity with the normal `pay`. It's main purpose is to expose the
unfinished functionality to test it, without completely breaking the existing
`pay` command.
This commit is contained in:
Christian Decker
2020-05-08 15:03:48 +02:00
parent 5d1725209d
commit 23b4dca3c7
4 changed files with 110 additions and 1 deletions

View File

@@ -129,6 +129,10 @@ struct payment_modifier {
void (*)(data_type, struct payment *), step_cb), \
};
struct dummy_data {
unsigned int *dummy_param;
};
/* List of globally available payment modifiers. */
extern struct payment_modifier dummy_pay_mod;