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

Function param_positive_number

plugins/spender/multifundchannel.c:1948–1962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1946}
1947
1948static struct command_result *
1949param_positive_number(struct command *cmd,
1950 const char *name,
1951 const char *buffer,
1952 const jsmntok_t *tok,
1953 unsigned int **num)
1954{
1955 struct command_result *res = param_number(cmd, name, buffer, tok, num);
1956 if (res)
1957 return res;
1958 if (**num == 0)
1959 return command_fail_badparam(cmd, name, buffer, tok,
1960 "should be a positive integer");
1961 return NULL;
1962}
1963
1964static struct command_result *param_utxos_str(struct command *cmd, const char *name,
1965 const char * buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

param_numberFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected