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

Function bitcoin_tx_destroy

bitcoin/tx.c:512–515  ·  view source on GitHub ↗

Use the bitcoin_tx destructor to also free the wally_tx */

Source from the content-addressed store, hash-verified

510
511/* Use the bitcoin_tx destructor to also free the wally_tx */
512static void bitcoin_tx_destroy(struct bitcoin_tx *tx)
513{
514 wally_tx_free(tx->wtx);
515}
516
517struct bitcoin_tx *bitcoin_tx(const tal_t *ctx,
518 const struct chainparams *chainparams,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected