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

Function param_id_addr_string

lightningd/connect_control.c:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static struct command_result *param_id_addr_string(struct command *cmd,
127 const char *name,
128 const char *buffer,
129 const jsmntok_t *tok,
130 const char **addr)
131{
132 if (*addr) {
133 return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
134 "Can't specify host as both xxx@yyy "
135 "and separate argument");
136 }
137 return param_string(cmd, name, buffer, tok, addr);
138}
139
140static struct command_result *param_id_addr_u16(struct command *cmd,
141 const char *name,

Callers

nothing calls this directly

Calls 2

param_stringFunction · 0.85
command_failFunction · 0.70

Tested by

no test coverage detected