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

Function param_lease_hex

common/json_param.c:1037–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037struct command_result *param_lease_hex(struct command *cmd,
1038 const char *name,
1039 const char *buffer,
1040 const jsmntok_t *tok,
1041 struct lease_rates **rates)
1042{
1043 *rates = lease_rates_fromhex(cmd, buffer + tok->start,
1044 tok->end - tok->start);
1045 if (!*rates)
1046 return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
1047 "Could not decode '%s' %.*s",
1048 name, json_tok_full_len(tok),
1049 json_tok_full(buffer, tok));
1050 return NULL;
1051}
1052
1053struct command_result *param_pubkey(struct command *cmd, const char *name,
1054 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected