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

Function json_add_amount_sat_msat

common/json_stream.c:591–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591void json_add_amount_sat_msat(struct json_stream *result,
592 const char *msatfieldname,
593 struct amount_sat sat)
594{
595 struct amount_msat msat;
596 assert(strends(msatfieldname, "_msat"));
597 if (amount_sat_to_msat(&msat, sat))
598 json_add_amount_msat_only(result, msatfieldname, msat);
599}
600
601/* When I noticed that we were adding "XXXmsat" fields *not* ending in _msat */
602void json_add_amount_sats_deprecated(struct json_stream *result,

Callers 4

json_add_lease_ratesFunction · 0.70
json_add_policyFunction · 0.50

Calls 3

strendsFunction · 0.85
amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected