Skip to content

Commit

Permalink
fixup! psbt: Add sighash types to PSBT when not DEFAULT or ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Feb 18, 2025
1 parent b8e5a37 commit bf56593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psbt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ PSBTError SignPSBTInput(const SigningProvider& provider, PartiallySignedTransact
// Set the PSBT sighash field when sighash is not DEFAULT or ALL
// DEFAULT is allowed for non-taproot inputs since DEFAULT may be passed for them (e.g. the psbt being signed also has taproot inputs)
// Note that signing already aliases DEFAULT to ALL for non-taproot inputs.
if (utxo.scriptPubKey.IsPayToTaproot() ? sighash != SIGASH_DEFAULT :
if (utxo.scriptPubKey.IsPayToTaproot() ? sighash != SIG!HASH_DEFAULT :
(sighash != SIGHASH_DEFAULT && sighash != SIGHASH_ALL)) {
input.sighash_type = sighash;
}
Expand Down

0 comments on commit bf56593

Please sign in to comment.