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

Function json_add_amount_sat_msat

common/json_stream.c:636–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636void json_add_amount_sat_msat(struct json_stream *result,
637 const char *msatfieldname,
638 struct amount_sat sat)
639{
640 struct amount_msat msat;
641 assert(strends(msatfieldname, "_msat"));
642 if (amount_sat_to_msat(&msat, sat))
643 json_add_amount_msat(result, msatfieldname, msat);
644}
645
646void json_add_sats(struct json_stream *result,
647 const char *fieldname,

Callers 15

json_add_utxoFunction · 0.85
json_listfundsFunction · 0.85
json_transaction_detailsFunction · 0.85
finish_psbtFunction · 0.85
json_addpsbtinputFunction · 0.85
handle_dry_run_finishedFunction · 0.85
NON_NULL_ARGSFunction · 0.85
peer_control.cFile · 0.85

Calls 3

strendsFunction · 0.85
json_add_amount_msatFunction · 0.85
amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected