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

Function command_fail_badparam

common/json_command.h:19–31  ·  view source on GitHub ↗

Convenient wrapper for "paramname: msg: invalid token '.*%s'" */

Source from the content-addressed store, hash-verified

17
18/* Convenient wrapper for "paramname: msg: invalid token '.*%s'" */
19static inline struct command_result *
20command_fail_badparam(struct command *cmd,
21 const char *paramname,
22 const char *buffer,
23 const jsmntok_t *tok,
24 const char *msg)
25{
26 return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
27 "%s: %s: invalid token '%.*s'",
28 paramname, msg,
29 json_tok_full_len(tok),
30 json_tok_full(buffer, tok));
31}
32
33/* Also caller supplied: is this invoked simply to get usage? */
34bool command_usage_only(const struct command *cmd);

Callers 15

command_find_channelFunction · 0.85
param_msat_u32Function · 0.85
param_loglevelFunction · 0.85
param_outpointFunction · 0.85
param_feerate_rangeFunction · 0.85
param_route_hopFunction · 0.85
param_route_hop_styleFunction · 0.85
param_payment_statusFunction · 0.85
param_pubkeysFunction · 0.85
json_setleaseratesFunction · 0.85
param_modeFunction · 0.85

Calls 3

json_tok_full_lenFunction · 0.70
json_tok_fullFunction · 0.70
command_failFunction · 0.50

Tested by

no test coverage detected