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

Function param

common/json_param.c:369–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369bool param(struct command *cmd,
370 const char *buffer,
371 const jsmntok_t tokens[], ...)
372{
373 bool ret;
374 va_list ap;
375
376 va_start(ap, tokens);
377 ret = param_core(cmd, buffer, tokens, ap);
378 va_end(ap);
379
380 /* Always "fail" if we're just checking! */
381 if (ret && command_check_only(cmd)) {
382 /* We really do ignore result here! */
383 if (command_check_done(cmd))
384 ;
385 ret = false;
386 }
387 return ret;
388}
389
390bool param_check(struct command *cmd,
391 const char *buffer,

Callers 15

json_newaddrFunction · 0.50
json_listaddressesFunction · 0.50
json_listaddrsFunction · 0.50
json_listfundsFunction · 0.50
json_dev_rescan_outputsFunction · 0.50
json_listtransactionsFunction · 0.50
json_signmessagewithkeyFunction · 0.50
json_listnetworkeventsFunction · 0.50
json_delnetworkeventFunction · 0.50
json_feeratesFunction · 0.50
json_parse_feerateFunction · 0.50
json_waitFunction · 0.50

Calls 3

param_coreFunction · 0.85
command_check_onlyFunction · 0.50
command_check_doneFunction · 0.50

Tested by 4

json_helloworldFunction · 0.40
json_testrpcFunction · 0.40
json_spamcommandFunction · 0.40
json_spamlistcommandFunction · 0.40