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

Function param_sat_or_all

common/json_param.c:536–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536struct command_result *param_sat_or_all(struct command *cmd, const char *name,
537 const char *buffer, const jsmntok_t *tok,
538 struct amount_sat **sat)
539{
540 if (json_tok_streq(buffer, tok, "all")) {
541 *sat = tal(cmd, struct amount_sat);
542 **sat = AMOUNT_SAT(-1ULL);
543 return NULL;
544 }
545 return param_sat(cmd, name, buffer, tok, sat);
546}
547
548struct command_result *param_node_id(struct command *cmd, const char *name,
549 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

param_satFunction · 0.85
json_tok_streqFunction · 0.70

Tested by

no test coverage detected