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

Function json_add_chains

plugins/offers.c:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static void json_add_chains(struct json_stream *js,
221 const struct bitcoin_blkid *chains)
222{
223 json_array_start(js, "chains");
224 for (size_t i = 0; i < tal_count(chains); i++)
225 json_add_sha256(js, NULL, &chains[i].shad.sha);
226 json_array_end(js);
227}
228
229static void json_add_onionmsg_path(struct json_stream *js,
230 const char *fieldname,

Callers 1

json_add_offerFunction · 0.85

Calls 3

json_array_startFunction · 0.50
json_add_sha256Function · 0.50
json_array_endFunction · 0.50

Tested by

no test coverage detected