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

Function param_s64

common/json_param.c:588–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588struct command_result *param_s64(struct command *cmd, const char *name,
589 const char *buffer, const jsmntok_t *tok,
590 int64_t **num)
591{
592 *num = tal(cmd, int64_t);
593 if (json_to_s64(buffer, tok, *num))
594 return NULL;
595
596 return command_fail_badparam(cmd, name, buffer, tok,
597 "should be an sign 64 bit integer");
598}
599
600struct command_result *param_msat(struct command *cmd, const char *name,
601 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.70
json_to_s64Function · 0.50

Tested by

no test coverage detected