Skip to content

Commit 6b92cdd

Browse files
ValuedMammalevanlinjin
authored andcommitted
fix(finalizer): return true if already finalized in finalize_input
Include the check for `final_script_sig` when evaluating whether the input is finalized.
1 parent c1effc0 commit 6b92cdd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/finalizer.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ impl Finalizer {
3535
// return true if already finalized.
3636
{
3737
let psbt_input = &psbt.inputs[input_index];
38-
if psbt_input.final_script_witness.is_some()
39-
|| psbt_input.final_script_witness.is_some()
40-
{
38+
if psbt_input.final_script_sig.is_some() || psbt_input.final_script_witness.is_some() {
4139
return Ok(true);
4240
}
4341
}

0 commit comments

Comments
 (0)