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

Function pull_bitcoin_tx

bitcoin/tx.c:589–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, const u8 **cursor,
590 size_t *max)
591{
592 struct bitcoin_tx *tx = tal(ctx, struct bitcoin_tx);
593 tx->wtx = pull_wtx(tx, cursor, max);
594 if (!tx->wtx)
595 return tal_free(tx);
596
597 tal_add_destructor(tx, bitcoin_tx_destroy);
598 tx->chainparams = chainparams;
599 tx->psbt = new_psbt(tx, tx->wtx);
600 if (!tx->psbt)
601 return tal_free(tx);
602
603 return tx;
604}
605
606struct bitcoin_tx *bitcoin_tx_from_hex(const tal_t *ctx, const char *hex,
607 size_t hexlen)

Callers 5

bitcoin_tx_from_hexFunction · 0.85
fromwire_bitcoin_txFunction · 0.85
bitcoin_block_from_hexFunction · 0.85
run_tx_interactiveFunction · 0.85
db_col_txFunction · 0.85

Calls 3

pull_wtxFunction · 0.85
tal_freeFunction · 0.85
new_psbtFunction · 0.70

Tested by

no test coverage detected