mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 12:22:50 -05:00
wallet: Remove sighash type enforcement from FillPSBT
This commit is contained in:
parent
2d8983c6b0
commit
2505b5cac0
1 changed files with 0 additions and 10 deletions
|
@ -651,11 +651,6 @@ std::optional<PSBTError> LegacyScriptPubKeyMan::FillPSBT(PartiallySignedTransact
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the Sighash type
|
|
||||||
if (sign && input.sighash_type != std::nullopt && *input.sighash_type != sighash_type) {
|
|
||||||
return PSBTError::SIGHASH_MISMATCH;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check non_witness_utxo has specified prevout
|
// Check non_witness_utxo has specified prevout
|
||||||
if (input.non_witness_utxo) {
|
if (input.non_witness_utxo) {
|
||||||
if (txin.prevout.n >= input.non_witness_utxo->vout.size()) {
|
if (txin.prevout.n >= input.non_witness_utxo->vout.size()) {
|
||||||
|
@ -2561,11 +2556,6 @@ std::optional<PSBTError> DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTran
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the Sighash type
|
|
||||||
if (sign && input.sighash_type != std::nullopt && *input.sighash_type != sighash_type) {
|
|
||||||
return PSBTError::SIGHASH_MISMATCH;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get the scriptPubKey to know which SigningProvider to use
|
// Get the scriptPubKey to know which SigningProvider to use
|
||||||
CScript script;
|
CScript script;
|
||||||
if (!input.witness_utxo.IsNull()) {
|
if (!input.witness_utxo.IsNull()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue