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

Function param_u64_nonzero

plugins/autoclean.c:764–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762}
763
764static struct command_result *param_u64_nonzero(struct command *cmd,
765 const char *name,
766 const char *buffer,
767 const jsmntok_t *tok,
768 u64 **val)
769{
770 struct command_result *res = param_u64(cmd, name, buffer, tok, val);
771 if (res == NULL && *val == 0)
772 res = command_fail_badparam(cmd, name, buffer, tok,
773 "Must be non-zero");
774 return res;
775}
776
777static struct command_result *json_autoclean_once(struct command *cmd,
778 const char *buffer,

Callers

nothing calls this directly

Calls 2

param_u64Function · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected