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

Function param_bin_from_hex

common/json_param.c:600–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600struct command_result *param_bin_from_hex(struct command *cmd, const char *name,
601 const char *buffer, const jsmntok_t *tok,
602 u8 **bin)
603{
604 *bin = json_tok_bin_from_hex(cmd, buffer, tok);
605 if (bin != NULL)
606 return NULL;
607
608 return command_fail_badparam(cmd, name, buffer, tok,
609 "should be a hex value");
610}
611
612struct command_result *param_hops_array(struct command *cmd, const char *name,
613 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_tok_bin_from_hexFunction · 0.70

Tested by

no test coverage detected