| 11 | #include <wire/wire.h> |
| 12 | |
| 13 | struct 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 | |
| 23 | struct wally_tx_output *wally_tx_output(const tal_t *ctx, |
| 24 | const u8 *script, |
nothing calls this directly
no outgoing calls
no test coverage detected