@@ -236,7 +236,7 @@ class ScriptPubKeyMan
236
236
/* * Sign a message with the given script */
237
237
virtual SigningResult SignMessage (const std::string& message, const PKHash& pkhash, std::string& str_sig) const { return SigningResult::SIGNING_FAILED; };
238
238
/* * 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; }
240
240
241
241
virtual uint256 GetID () const { return uint256 (); }
242
242
@@ -400,7 +400,7 @@ class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProv
400
400
401
401
bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , bilingual_str>& input_errors) const override ;
402
402
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 ;
404
404
405
405
uint256 GetID () const override ;
406
406
@@ -609,7 +609,7 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
609
609
610
610
bool SignTransaction (CMutableTransaction& tx, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int , bilingual_str>& input_errors) const override ;
611
611
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 ;
613
613
614
614
uint256 GetID () const override ;
615
615
0 commit comments