Skip to content

Commit

Permalink
psbt: remove redundant re-setting of tx modification flags.
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
  • Loading branch information
jgriffiths authored and rustyrussell committed May 30, 2023
1 parent b2b8722 commit 14e9422
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bitcoin/psbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ struct wally_psbt *new_psbt(const tal_t *ctx, const struct wally_tx *wtx)

tal_wally_start();

/* locktime set in create_psbt for now */
/* locktime and modifiable flags are set in create_psbt */
wally_psbt_set_tx_version(psbt, wtx->version);
wally_psbt_set_tx_modifiable_flags(psbt, WALLY_PSBT_TXMOD_INPUTS | WALLY_PSBT_TXMOD_OUTPUTS);

for (size_t i = 0; i < wtx->num_inputs; i++) {
wally_err = wally_psbt_add_tx_input_at(psbt, i, 0, &wtx->inputs[i]);
Expand Down

0 comments on commit 14e9422

Please sign in to comment.