| 797 | } |
| 798 | |
| 799 | void 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 | |
| 808 | bool wally_tx_input_spends(const struct wally_tx_input *input, |
| 809 | const struct bitcoin_outpoint *outpoint) |