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

Function fmt_bitcoin_txid

bitcoin/tx.c:679–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679static char *fmt_bitcoin_txid(const tal_t *ctx, const struct bitcoin_txid *txid)
680{
681 char *hexstr = tal_arr(ctx, char, hex_str_size(sizeof(*txid)));
682
683 bitcoin_txid_to_hex(txid, hexstr, hex_str_size(sizeof(*txid)));
684 return hexstr;
685}
686
687static char *fmt_bitcoin_outpoint(const tal_t *ctx,
688 const struct bitcoin_outpoint *outpoint)

Callers 1

fmt_bitcoin_outpointFunction · 0.85

Calls 2

hex_str_sizeFunction · 0.85
bitcoin_txid_to_hexFunction · 0.85

Tested by

no test coverage detected