Skip to content

Commit

Permalink
wallet: Remove sighash type enforcement from FillPSBT
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Jan 9, 2025
1 parent cc550cb commit fe62c50
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/wallet/scriptpubkeyman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,6 @@ std::optional<PSBTError> LegacyScriptPubKeyMan::FillPSBT(PartiallySignedTransact
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
if (input.non_witness_utxo) {
if (txin.prevout.n >= input.non_witness_utxo->vout.size()) {
Expand Down Expand Up @@ -2545,11 +2540,6 @@ std::optional<PSBTError> DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTran
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
CScript script;
if (!input.witness_utxo.IsNull()) {
Expand Down

0 comments on commit fe62c50

Please sign in to comment.