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

Function param_u64_nonzero

lightningd/pay.c:1792–1803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792static struct command_result *param_u64_nonzero(struct command *cmd,
1793 const char *name,
1794 const char *buffer,
1795 const jsmntok_t *tok,
1796 u64 **val)
1797{
1798 struct command_result *res = param_u64(cmd, name, buffer, tok, val);
1799 if (res == NULL && *val == 0)
1800 res = command_fail_badparam(cmd, name, buffer, tok,
1801 "Must be non-zero");
1802 return res;
1803}
1804
1805static void register_payment_and_waiter(struct command *cmd,
1806 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