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

Function param_sat_or_all

common/json_param.c:624–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624struct command_result *param_sat_or_all(struct command *cmd, const char *name,
625 const char *buffer, const jsmntok_t *tok,
626 struct amount_sat **sat)
627{
628 if (json_tok_streq(buffer, tok, "all")) {
629 *sat = tal(cmd, struct amount_sat);
630 **sat = AMOUNT_SAT(-1ULL);
631 return NULL;
632 }
633 return param_sat(cmd, name, buffer, tok, sat);
634}
635
636struct command_result *param_node_id(struct command *cmd, const char *name,
637 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

json_tok_streqFunction · 0.85
param_satFunction · 0.85

Tested by

no test coverage detected