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

Function wally_tx_output_get_script

bitcoin/tx.c:268–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268const u8 *wally_tx_output_get_script(const tal_t *ctx,
269 const struct wally_tx_output *output)
270{
271 if (output->script == NULL) {
272 /* This can happen for coinbase transactions and pegin
273 * transactions */
274 return NULL;
275 }
276
277 return tal_dup_arr(ctx, u8, output->script, output->script_len, 0);
278}
279
280const u8 *bitcoin_tx_output_get_script(const tal_t *ctx,
281 const struct bitcoin_tx *tx, int outnum)

Callers 7

psbt_has_required_fieldsFunction · 0.85
psbt_changeset_get_nextFunction · 0.85
is_segwit_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected