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

Function bitcoin_tx_output_get_script

bitcoin/tx.c:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280const u8 *bitcoin_tx_output_get_script(const tal_t *ctx,
281 const struct bitcoin_tx *tx, int outnum)
282{
283 const struct wally_tx_output *output;
284 assert(outnum < tx->wtx->num_outputs);
285 output = &tx->wtx->outputs[outnum];
286
287 return wally_tx_output_get_script(ctx, output);
288}
289
290u8 *bitcoin_tx_output_get_witscript(const tal_t *ctx, const struct bitcoin_tx *tx,
291 int outnum)

Callers 5

txfilter_matchFunction · 0.85
topo_add_utxosFunction · 0.85
check_funding_detailsFunction · 0.85
calc_tx_feeFunction · 0.85

Calls 1

Tested by

no test coverage detected