@@ -236,7 +236,7 @@ class ScriptPubKeyMan
236236 /* * Sign a message with the given script */
237237 virtual SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const { return SigningResult::SIGNING_FAILED; };
238238 /* * Adds script and derivation path information to a PSBT, and optionally signs it. */
239- virtual TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 1 /* SIGHASH_ALL */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr , bool finalize = true ) const { return TransactionError::INVALID_PSBT; }
239+ virtual TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = SIGHASH_DEFAULT , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr , bool finalize = true ) const { return TransactionError::INVALID_PSBT; }
240240
241241 virtual uint256 GetID () const { return uint256 (); }
242242
@@ -400,7 +400,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
400400
401401 bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , bilingual_str>& input_errors) const override ;
402402 SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const override ;
403- TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 1 /* SIGHASH_ALL */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr , bool finalize = true ) const override ;
403+ TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = SIGHASH_DEFAULT , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr , bool finalize = true ) const override ;
404404
405405 uint256 GetID () const override ;
406406
@@ -609,7 +609,7 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
609609
610610 bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , bilingual_str>& input_errors) const override ;
611611 SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const override ;
612- TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = 1 /* SIGHASH_ALL */ , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr , bool finalize = true ) const override ;
612+ TransactionError FillPSBT (PartiallySignedTransaction& psbt, const PrecomputedTransactionData& txdata, int sighash_type = SIGHASH_DEFAULT , bool sign = true , bool bip32derivs = false , int * n_signed = nullptr , bool finalize = true ) const override ;
613613
614614 uint256 GetID () const override ;
615615
0 commit comments