From 1f71cd337ad75390a1f8810d6715f3634ed07e98 Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Wed, 8 Jan 2025 19:56:13 -0500 Subject: [PATCH] wallet: Remove sighash type enforcement from FillPSBT --- src/wallet/scriptpubkeyman.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 136c44d0837..1943b513bf9 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -1324,11 +1324,6 @@ std::optional 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()) {