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

Function json_to_msat

common/json_parse.c:550–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550bool json_to_msat(const char *buffer, const jsmntok_t *tok,
551 struct amount_msat *msat)
552{
553 return parse_amount_msat(msat,
554 buffer + tok->start, tok->end - tok->start);
555}
556
557bool json_to_sat(const char *buffer, const jsmntok_t *tok,
558 struct amount_sat *sat)

Callers 15

json_to_msat_to_satFunction · 0.70
hook_extract_amountFunction · 0.50
param_route_hopFunction · 0.50
param_route_hopsFunction · 0.50
process_json_objFunction · 0.50
currency_doneFunction · 0.50
psbt_createdFunction · 0.50
invoice_paymentFunction · 0.50

Calls 1

parse_amount_msatFunction · 0.70

Tested by

no test coverage detected