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

Function json_to_sat

common/json_parse.c:552–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552bool json_to_sat(const char *buffer, const jsmntok_t *tok,
553 struct amount_sat *sat)
554{
555 return parse_amount_sat(sat, buffer + tok->start, tok->end - tok->start);
556}
557
558bool json_to_sat_or_all(const char *buffer, const jsmntok_t *tok,
559 struct amount_sat *sat)

Callers 2

json_to_sat_or_allFunction · 0.70

Calls 1

parse_amount_satFunction · 0.70

Tested by

no test coverage detected