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

Function param_millionths

common/json_param.c:427–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427struct command_result *param_millionths(struct command *cmd, const char *name,
428 const char *buffer,
429 const jsmntok_t *tok, uint64_t **num)
430{
431 *num = tal(cmd, uint64_t);
432 if (json_to_millionths(buffer, tok, *num))
433 return NULL;
434
435 return command_fail_badparam(cmd, name, buffer, tok,
436 "should be a non-negative floating-point number");
437}
438
439struct command_result *param_escaped_string(struct command *cmd,
440 const char *name,

Callers

nothing calls this directly

Calls 2

json_to_millionthsFunction · 0.70
command_fail_badparamFunction · 0.70

Tested by

no test coverage detected