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

Function fmt_bitcoin_txid

bitcoin/tx.c:720–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720char *fmt_bitcoin_txid(const tal_t *ctx, const struct bitcoin_txid *txid)
721{
722 char *hexstr = tal_arr(ctx, char, hex_str_size(sizeof(*txid)));
723
724 bitcoin_txid_to_hex(txid, hexstr, hex_str_size(sizeof(*txid)));
725 return hexstr;
726}
727
728char *fmt_bitcoin_outpoint(const tal_t *ctx,
729 const struct bitcoin_outpoint *outpoint)

Callers 15

do_quickcloseFunction · 0.85
mainFunction · 0.85
resolved_by_proposalFunction · 0.85
resolved_by_otherFunction · 0.85
unknown_spendFunction · 0.85
output_spentFunction · 0.85
fmt_bitcoin_outpointFunction · 0.85
got_utxoFunction · 0.85
json_unreserveinputsFunction · 0.85
check_tx_abortFunction · 0.85
handle_peer_commit_sigFunction · 0.85

Calls 2

hex_str_sizeFunction · 0.85
bitcoin_txid_to_hexFunction · 0.85

Tested by

no test coverage detected