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

Function fmt_bitcoin_blkid

bitcoin/block.c:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240static char *fmt_bitcoin_blkid(const tal_t *ctx,
241 const struct bitcoin_blkid *blkid)
242{
243 char *hexstr = tal_arr(ctx, char, hex_str_size(sizeof(*blkid)));
244
245 bitcoin_blkid_to_hex(blkid, hexstr, hex_str_size(sizeof(*blkid)));
246 return hexstr;
247}
248REGISTER_TYPE_TO_STRING(bitcoin_blkid, fmt_bitcoin_blkid);
249
250void fromwire_bitcoin_blkid(const u8 **cursor, size_t *max,

Callers

nothing calls this directly

Calls 2

hex_str_sizeFunction · 0.85
bitcoin_blkid_to_hexFunction · 0.85

Tested by

no test coverage detected