mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 20:54:23 +01:00
psbt: implement psbt_append_output using psbt_insert_output.
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
This commit is contained in:
committed by
Rusty Russell
parent
5ed6f618b3
commit
909f911ff7
@@ -200,13 +200,9 @@ struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt,
|
||||
const u8 *script,
|
||||
struct amount_sat amount)
|
||||
{
|
||||
struct wally_psbt_output *out;
|
||||
struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount);
|
||||
|
||||
out = psbt_add_output(psbt, tx_out, psbt->num_outputs);
|
||||
wally_tx_output_free(tx_out);
|
||||
return out;
|
||||
return psbt_insert_output(psbt, script, amount, psbt->num_outputs);
|
||||
}
|
||||
|
||||
struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt,
|
||||
const u8 *script,
|
||||
struct amount_sat amount,
|
||||
|
||||
Reference in New Issue
Block a user