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

Function json_add_amount_msat_compat

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

Source from the content-addressed store, hash-verified

556}
557
558void json_add_amount_msat_compat(struct json_stream *result,
559 struct amount_msat msat,
560 const char *rawfieldname,
561 const char *msatfieldname)
562{
563 if (deprecated_apis)
564 json_add_u64(result, rawfieldname, msat.millisatoshis); /* Raw: low-level helper */
565 json_add_amount_msat_only(result, msatfieldname, msat);
566}
567
568void json_add_amount_msat_only(struct json_stream *result,
569 const char *msatfieldname,

Callers 1

json_add_bolt11Function · 0.70

Calls 2

json_add_u64Function · 0.70

Tested by

no test coverage detected