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

Function param_u64_nonzero

lightningd/pay.c:1795–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795static struct command_result *param_u64_nonzero(struct command *cmd,
1796 const char *name,
1797 const char *buffer,
1798 const jsmntok_t *tok,
1799 u64 **val)
1800{
1801 struct command_result *res = param_u64(cmd, name, buffer, tok, val);
1802 if (res == NULL && *val == 0)
1803 res = command_fail_badparam(cmd, name, buffer, tok,
1804 "Must be non-zero");
1805 return res;
1806}
1807
1808static void register_payment_and_waiter(struct command *cmd,
1809 const struct sha256 *payment_hash,

Callers

nothing calls this directly

Calls 2

param_u64Function · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected