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

Function param_u64_nonzero

plugins/autoclean.c:519–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519static struct command_result *param_u64_nonzero(struct command *cmd,
520 const char *name,
521 const char *buffer,
522 const jsmntok_t *tok,
523 u64 **val)
524{
525 struct command_result *res = param_u64(cmd, name, buffer, tok, val);
526 if (res == NULL && *val == 0)
527 res = command_fail_badparam(cmd, name, buffer, tok,
528 "Must be non-zero");
529 return res;
530}
531
532static struct command_result *json_autoclean_once(struct command *cmd,
533 const char *buffer,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
param_u64Function · 0.50

Tested by

no test coverage detected