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

Function pull_bitcoin_tx_only

bitcoin/tx.c:632–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632struct 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
647struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, const u8 **cursor,
648 size_t *max)

Callers 5

pull_bitcoin_txFunction · 0.85
fromwire_bitcoin_txFunction · 0.85
bitcoin_block_from_hexFunction · 0.85
run_tx_interactiveFunction · 0.85

Calls 2

pull_wtxFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected