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

Function param_positive_number

plugins/spender/multifundchannel.c:1997–2011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1995}
1996
1997static struct command_result *
1998param_positive_number(struct command *cmd,
1999 const char *name,
2000 const char *buffer,
2001 const jsmntok_t *tok,
2002 unsigned int **num)
2003{
2004 struct command_result *res = param_number(cmd, name, buffer, tok, num);
2005 if (res)
2006 return res;
2007 if (**num == 0)
2008 return command_fail_badparam(cmd, name, buffer, tok,
2009 "should be a positive integer");
2010 return NULL;
2011}
2012
2013static struct command_result *param_utxos_str(struct command *cmd, const char *name,
2014 const char * buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
param_numberFunction · 0.50

Tested by

no test coverage detected