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

Function json_add_amount_sat_compat

common/json_stream.c:581–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void json_add_amount_sat_compat(struct json_stream *result,
582 struct amount_sat sat,
583 const char *rawfieldname,
584 const char *msatfieldname)
585{
586 if (deprecated_apis)
587 json_add_u64(result, rawfieldname, sat.satoshis); /* Raw: low-level helper */
588 json_add_amount_sat_msat(result, msatfieldname, sat);
589}
590
591void json_add_amount_sat_msat(struct json_stream *result,
592 const char *msatfieldname,

Callers 1

json_add_halfchanFunction · 0.50

Calls 2

json_add_u64Function · 0.70
json_add_amount_sat_msatFunction · 0.70

Tested by

no test coverage detected