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

Function towire_bitcoin_tx

bitcoin/tx.c:799–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799void towire_bitcoin_tx(u8 **pptr, const struct bitcoin_tx *tx)
800{
801 u8 *lin = linearize_tx(tmpctx, tx);
802 towire_u32(pptr, tal_count(lin));
803 towire_u8_array(pptr, lin, tal_count(lin));
804
805 towire_wally_psbt(pptr, tx->psbt);
806}
807
808bool wally_tx_input_spends(const struct wally_tx_input *input,
809 const struct bitcoin_outpoint *outpoint)

Callers 2

mainFunction · 0.85
towire_inflightFunction · 0.85

Calls 4

linearize_txFunction · 0.85
towire_wally_psbtFunction · 0.85
towire_u32Function · 0.50
towire_u8_arrayFunction · 0.50

Tested by 1

mainFunction · 0.68