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

Function json_add_chains

plugins/offers.c:748–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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