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

Function json_add_amount_msat

common/json_stream.c:620–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void json_add_amount_msat(struct json_stream *result,
621 const char *msatfieldname,
622 struct amount_msat msat)
623{
624 assert(strends(msatfieldname, "_msat") || streq(msatfieldname, "msat"));
625 json_add_u64(result, msatfieldname, msat.millisatoshis); /* Raw: low-level helper */
626}
627
628void json_add_amount_sat(struct json_stream *result,
629 const char *satfieldname,

Callers 15

json_listfundsFunction · 0.85
json_add_unsaved_channelFunction · 0.85
json_add_htlcsFunction · 0.85
NON_NULL_ARGSFunction · 0.85
peer_control.cFile · 0.85
json_getinfoFunction · 0.85
set_channel_configFunction · 0.85
json_add_payment_fieldsFunction · 0.85

Calls 2

strendsFunction · 0.85
json_add_u64Function · 0.85

Tested by 1

mainFunction · 0.68