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

Function param_millionths

common/json_param.c:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402struct command_result *param_millionths(struct command *cmd, const char *name,
403 const char *buffer,
404 const jsmntok_t *tok, uint64_t **num)
405{
406 *num = tal(cmd, uint64_t);
407 if (json_to_millionths(buffer, tok, *num))
408 return NULL;
409
410 return command_fail_badparam(cmd, name, buffer, tok,
411 "should be a non-negative floating-point number");
412}
413
414struct command_result *param_escaped_string(struct command *cmd,
415 const char *name,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_to_millionthsFunction · 0.70

Tested by

no test coverage detected