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

Function fmt_bitcoin_blkid

bitcoin/block.c:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248char *fmt_bitcoin_blkid(const tal_t *ctx, const struct bitcoin_blkid *blkid)
249{
250 char *hexstr = tal_arr(ctx, char, hex_str_size(sizeof(*blkid)));
251
252 bitcoin_blkid_to_hex(blkid, hexstr, hex_str_size(sizeof(*blkid)));
253 return hexstr;
254}
255
256void fromwire_bitcoin_blkid(const u8 **cursor, size_t *max,
257 struct bitcoin_blkid *blkid)

Callers 15

wallet_sanity_checkFunction · 0.85
new_blockFunction · 0.85
remove_tipFunction · 0.85
bwatch_remove_tipFunction · 0.85
handle_blockFunction · 0.85
fundee_channelFunction · 0.85
accepter_startFunction · 0.85

Calls 2

hex_str_sizeFunction · 0.85
bitcoin_blkid_to_hexFunction · 0.85

Tested by

no test coverage detected