MCPcopy Create free account
hub / github.com/ElementsProject/lightning / payment_register_command

Function payment_register_command

plugins/renepay/payment.c:194–201  ·  view source on GitHub ↗

attach a command to this payment */

Source from the content-addressed store, hash-verified

192
193/* attach a command to this payment */
194bool payment_register_command(struct payment *p, struct command *cmd)
195{
196 assert(p);
197 assert(cmd);
198 assert(p->cmd_array);
199 tal_arr_expand(&p->cmd_array, cmd);
200 return true;
201}
202
203/* are there pending commands on this payment? */
204bool payment_commands_empty(const struct payment *p)

Callers 1

json_renepayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected