@@ -234,7 +234,7 @@ class ScriptPubKeyMan
234234 /* * Sign a message with the given script */
235235 virtual SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const { return SigningResult::SIGNING_FAILED; };
236236 /* * Adds script and derivation path information to a PSBT, and optionally signs it. */
237- virtual TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 1 /* SIGHASH_ALL */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr ) const { return TransactionError::INVALID_PSBT; }
237+ virtual TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 0 /* SIGHASH_DEFAULT */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr ) const { return TransactionError::INVALID_PSBT; }
238238
239239 virtual uint256 GetID () const { return uint256 (); }
240240
@@ -398,7 +398,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
398398
399399 bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , std::string>& input_errors) const override ;
400400 SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const override ;
401- TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 1 /* SIGHASH_ALL */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr ) const override ;
401+ TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 0 /* SIGHASH_DEFAULT */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr ) const override ;
402402
403403 uint256 GetID () const override ;
404404
@@ -603,7 +603,7 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
603603
604604 bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , std::string>& input_errors) const override ;
605605 SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const override ;
606- TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 1 /* SIGHASH_ALL */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr ) const override ;
606+ TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 0 /* SIGHASH_DEFAULT */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr ) const override ;
607607
608608 uint256 GetID () const override ;
609609
0 commit comments