| 630 | } |
| 631 | |
| 632 | struct bitcoin_tx *pull_bitcoin_tx_only(const tal_t *ctx, const u8 **cursor, |
| 633 | size_t *max) |
| 634 | { |
| 635 | struct bitcoin_tx *tx = tal(ctx, struct bitcoin_tx); |
| 636 | tx->wtx = pull_wtx(tx, cursor, max); |
| 637 | if (!tx->wtx) |
| 638 | return tal_free(tx); |
| 639 | |
| 640 | tal_add_destructor(tx, bitcoin_tx_destroy); |
| 641 | tx->chainparams = chainparams; |
| 642 | tx->psbt = NULL; |
| 643 | |
| 644 | return tx; |
| 645 | } |
| 646 | |
| 647 | struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, const u8 **cursor, |
| 648 | size_t *max) |
no test coverage detected