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

Function json_to_sat_or_all

common/json_parse.c:558–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

param_outputsFunction · 0.85
param_outputs_arrayFunction · 0.85

Calls 2

json_tok_streqFunction · 0.70
json_to_satFunction · 0.70

Tested by

no test coverage detected