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

Function pull_bitcoin_tx

bitcoin/tx.c:647–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647struct 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
659struct bitcoin_tx *bitcoin_tx_from_hex(const tal_t *ctx, const char *hex,
660 size_t hexlen)

Callers 2

bitcoin_tx_from_hexFunction · 0.85
db_col_txFunction · 0.85

Calls 3

pull_bitcoin_tx_onlyFunction · 0.85
new_psbtFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected