mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
psbt: remove redundant re-setting of tx modification flags.
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
This commit is contained in:
parent
b2b8722a14
commit
14e942298a
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user