paymod: Maintain a list of current and past payments

We need to keep them around so we can inspect them later. We'll also need a
background cleanup every once in a while to free some memory. More on that in
a future commit.
This commit is contained in:
Christian Decker
2020-05-18 18:47:21 +02:00
parent 8207b4eac8
commit c35df400b2
2 changed files with 5 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ enum payment_step {
struct payment {
/* The command that triggered this payment. */
struct command *cmd;
struct list_node list;
const char *json_buffer;
const jsmntok_t *json_toks;