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

Function towire_bitcoin_tx

bitcoin/tx.c:755–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755void towire_bitcoin_tx(u8 **pptr, const struct bitcoin_tx *tx)
756{
757 u8 *lin = linearize_tx(tmpctx, tx);
758 towire_u32(pptr, tal_count(lin));
759 towire_u8_array(pptr, lin, tal_count(lin));
760
761 towire_wally_psbt(pptr, tx->psbt);
762}
763
764bool wally_tx_input_spends(const struct wally_tx_input *input,
765 const struct bitcoin_outpoint *outpoint)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected