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

Function param_bin_from_hex

common/json_param.c:701–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701struct command_result *param_bin_from_hex(struct command *cmd, const char *name,
702 const char *buffer, const jsmntok_t *tok,
703 u8 **bin)
704{
705 *bin = json_tok_bin_from_hex(cmd, buffer, tok);
706 if (bin != NULL)
707 return NULL;
708
709 return command_fail_badparam(cmd, name, buffer, tok,
710 "should be a hex value");
711}
712
713struct command_result *param_hops_array(struct command *cmd, const char *name,
714 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

json_tok_bin_from_hexFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected