From 14e942298aeafe38f970a168405bf6e168cc853f Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Tue, 30 May 2023 10:38:28 +1200 Subject: [PATCH] psbt: remove redundant re-setting of tx modification flags. Signed-off-by: Jon Griffiths --- bitcoin/psbt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitcoin/psbt.c b/bitcoin/psbt.c index 1505b6891..446edf67a 100644 --- a/bitcoin/psbt.c +++ b/bitcoin/psbt.c @@ -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]);