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

Function json_add_bitcoin_blkid

common/json_stream.c:460–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460void json_add_bitcoin_blkid(struct json_stream *result, const char *fieldname,
461 const struct bitcoin_blkid *blkid)
462{
463 char hex[hex_str_size(sizeof(*blkid))];
464
465 bitcoin_blkid_to_hex(blkid, hex, sizeof(hex));
466 json_add_string(result, fieldname, hex);
467}
468
469void json_add_outpoint(struct json_stream *result, const char *fieldname,
470 const struct bitcoin_outpoint *out)

Callers

nothing calls this directly

Calls 3

hex_str_sizeFunction · 0.85
bitcoin_blkid_to_hexFunction · 0.85
json_add_stringFunction · 0.70

Tested by

no test coverage detected