Skip to content

Commit 14e9422

Browse files
jgriffithsrustyrussell
authored andcommitted
psbt: remove redundant re-setting of tx modification flags.
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
1 parent b2b8722 commit 14e9422

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bitcoin/psbt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ struct wally_psbt *new_psbt(const tal_t *ctx, const struct wally_tx *wtx)
5454

5555
tal_wally_start();
5656

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

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

0 commit comments

Comments
 (0)