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

Function wally_psbt_output_get_script

bitcoin/psbt.c:1054–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054const u8 *wally_psbt_output_get_script(const tal_t *ctx,
1055 const struct wally_psbt_output *output)
1056{
1057 if (output->script == NULL) {
1058 /* This can happen for coinbase transactions, pegin
1059 * transactions, and elements fee outputs */
1060 return NULL;
1061 }
1062
1063 return tal_dup_arr(ctx, u8, output->script, output->script_len, 0);
1064}
1065
1066/* FIXME(cdecker) Make the caller pass in a reference to amount_asset, and
1067 * return false if unintelligible/encrypted. (WARN UNUSED). */

Callers 3

send_nextFunction · 0.85
psbt_changeset_get_nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected