diff --git a/src/script/sign.cpp b/src/script/sign.cpp index ecd4012b7e05d..71ac54cb1b8e6 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -353,12 +353,12 @@ class DummySignatureCreator final : public BaseSignatureCreator { const BaseSignatureCreator& DUMMY_SIGNATURE_CREATOR = DummySignatureCreator(); -bool IsSolvable(const CKeyStore& store, const CScript& script) +bool IsSolvable(const SigningProvider& provider, const CScript& script) { // This check is to make sure that the script we created can actually be solved for and signed by us // if we were to have the private keys. This is just to make sure that the script is valid and that, // if found in a transaction, we would still accept and relay that transaction. - DummySignatureCreator creator(&store); + DummySignatureCreator creator(&provider); SignatureData sigs; if (ProduceSignature(creator, script, sigs)) { // VerifyScript check is just defensive, and should never fail. diff --git a/src/script/sign.h b/src/script/sign.h index 7178c1f9f097e..f8b5e98d2c7bf 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -84,8 +84,8 @@ void UpdateInput(CTxIn& input, const SignatureData& data); /* Check whether we know how to sign for an output like this, assuming we * have all private keys. While this function does not need private keys, the passed - * keystore is used to look up public keys and redeemscripts by hash. + * provider is used to look up public keys and redeemscripts by hash. * Solvability is unrelated to whether we consider this output to be ours. */ -bool IsSolvable(const CKeyStore& store, const CScript& script); +bool IsSolvable(const SigningProvider& provider, const CScript& script); #endif // BITCOIN_SCRIPT_SIGN_H