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

Function new_tx_output

bitcoin/tx.c:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <wire/wire.h>
12
13struct bitcoin_tx_output *new_tx_output(const tal_t *ctx,
14 struct amount_sat amount,
15 const u8 *script)
16{
17 struct bitcoin_tx_output *output = tal(ctx, struct bitcoin_tx_output);
18 output->amount = amount;
19 output->script = tal_dup_arr(output, u8, script, tal_count(script), 0);
20 return output;
21}
22
23struct wally_tx_output *wally_tx_output(const tal_t *ctx,
24 const u8 *script,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected