| 645 | } |
| 646 | |
| 647 | struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, const u8 **cursor, |
| 648 | size_t *max) |
| 649 | { |
| 650 | struct bitcoin_tx *tx = pull_bitcoin_tx_only(ctx, cursor, max); |
| 651 | if (tx) { |
| 652 | tx->psbt = new_psbt(tx, tx->wtx); |
| 653 | if (!tx->psbt) |
| 654 | return tal_free(tx); |
| 655 | } |
| 656 | return tx; |
| 657 | } |
| 658 | |
| 659 | struct bitcoin_tx *bitcoin_tx_from_hex(const tal_t *ctx, const char *hex, |
| 660 | size_t hexlen) |
no test coverage detected