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

Function new_commando

plugins/commando.c:48–63  ·  view source on GitHub ↗

The minimum fields required to respond. */

Source from the content-addressed store, hash-verified

46
47/* The minimum fields required to respond. */
48static struct commando *new_commando(const tal_t *ctx,
49 struct command *cmd,
50 const struct node_id *peer,
51 u64 id)
52{
53 struct commando *commando = tal(ctx, struct commando);
54
55 commando->cmd = cmd;
56 commando->peer = *peer;
57 commando->id = id;
58
59 commando->contents = NULL;
60 commando->json_id = NULL;
61
62 return commando;
63}
64
65/* NULL peer: don't care about peer. NULL id: don't care about id */
66static struct commando *find_commando(struct commando **arr,

Callers 2

handle_incmdFunction · 0.85
json_commandoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected