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

Function new_commando

plugins/commando.c:51–66  ·  view source on GitHub ↗

The minimum fields required to respond. */

Source from the content-addressed store, hash-verified

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