Browse Source

psbt: rename append_out -> append_output

bump-pyln-proto
niftynei 4 years ago
committed by Rusty Russell
parent
commit
2f9a37de4a
  1. 6
      bitcoin/psbt.c
  2. 6
      bitcoin/psbt.h

6
bitcoin/psbt.c

@ -144,9 +144,9 @@ struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt,
return &psbt->outputs[insert_at]; return &psbt->outputs[insert_at];
} }
struct wally_psbt_output *psbt_append_out(struct wally_psbt *psbt, struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt,
const u8 *script, const u8 *script,
struct amount_sat amount) struct amount_sat amount)
{ {
struct wally_psbt_output *out; struct wally_psbt_output *out;
struct wally_tx_output *tx_out = wally_tx_output(script, amount); struct wally_tx_output *tx_out = wally_tx_output(script, amount);

6
bitcoin/psbt.h

@ -92,9 +92,9 @@ struct wally_psbt_output *psbt_add_output(struct wally_psbt *psbt,
* @script - scriptPubKey of the output * @script - scriptPubKey of the output
* @amount - value of the output * @amount - value of the output
*/ */
struct wally_psbt_output *psbt_append_out(struct wally_psbt *psbt, struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt,
const u8 *script, const u8 *script,
struct amount_sat amount); struct amount_sat amount);
void psbt_rm_output(struct wally_psbt *psbt, void psbt_rm_output(struct wally_psbt *psbt,
size_t remove_at); size_t remove_at);

Loading…
Cancel
Save