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

Function json_to_sat_or_all

common/json_parse.c:563–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563bool json_to_sat_or_all(const char *buffer, const jsmntok_t *tok,
564 struct amount_sat *sat)
565{
566 if (json_tok_streq(buffer, tok, "all")) {
567 *sat = AMOUNT_SAT(-1ULL);
568 return true;
569 }
570 return json_to_sat(buffer, tok, sat);
571}
572
573bool json_to_short_channel_id(const char *buffer, const jsmntok_t *tok,
574 struct short_channel_id *scid)

Callers 2

param_outputsFunction · 0.85
param_outputs_arrayFunction · 0.85

Calls 2

json_tok_streqFunction · 0.85
json_to_satFunction · 0.85

Tested by

no test coverage detected