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

Function json_add_chains

plugins/offers.c:746–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746static void json_add_chains(struct json_stream *js,
747 const char *fieldname,
748 const struct bitcoin_blkid *chains)
749{
750 json_array_start(js, fieldname);
751 for (size_t i = 0; i < tal_count(chains); i++)
752 json_add_sha256(js, NULL, &chains[i].shad.sha);
753 json_array_end(js);
754}
755
756static void json_add_onionmsg_path(struct json_stream *js,
757 const char *fieldname,

Callers 2

json_add_offer_fieldsFunction · 0.85
json_add_payer_proofFunction · 0.85

Calls 3

json_array_startFunction · 0.85
json_add_sha256Function · 0.85
json_array_endFunction · 0.85

Tested by

no test coverage detected