paymod: Do not pass cmd to sub-payments, plugin suffices

We were passing the `cmd` instance around where `plugin` suffices (used to
start RPC calls and logs).
This commit is contained in:
Christian Decker
2020-05-18 20:44:21 +02:00
parent df94ec35ba
commit 958eb41cbb
2 changed files with 20 additions and 14 deletions

View File

@@ -101,8 +101,10 @@ enum payment_step {
};
struct payment {
/* The command that triggered this payment. */
/* The command that triggered this payment. Only set for the root
* payment. */
struct command *cmd;
struct plugin *plugin;
struct list_node list;
const char *json_buffer;