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

Function param_lease_hex

common/json_param.c:1155–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155struct command_result *param_lease_hex(struct command *cmd,
1156 const char *name,
1157 const char *buffer,
1158 const jsmntok_t *tok,
1159 struct lease_rates **rates)
1160{
1161 *rates = lease_rates_fromhex(cmd, buffer + tok->start,
1162 tok->end - tok->start);
1163 if (!*rates)
1164 return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
1165 "Could not decode '%s' %.*s",
1166 name, json_tok_full_len(tok),
1167 json_tok_full(buffer, tok));
1168 return NULL;
1169}
1170
1171struct command_result *param_pubkey(struct command *cmd, const char *name,
1172 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 4

lease_rates_fromhexFunction · 0.70
command_failFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected