diff --git a/src/script/sign.cpp b/src/script/sign.cpp index 71ac54cb1b8e6..3125c67d3889e 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -358,11 +358,10 @@ 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(&provider); SignatureData sigs; - if (ProduceSignature(creator, script, sigs)) { + if (ProduceSignature(provider, DUMMY_SIGNATURE_CREATOR, script, sigs)) { // VerifyScript check is just defensive, and should never fail. - assert(VerifyScript(sigs.scriptSig, script, STANDARD_SCRIPT_VERIFY_FLAGS, creator.Checker())); + assert(VerifyScript(sigs.scriptSig, script, STANDARD_SCRIPT_VERIFY_FLAGS, DUMMY_CHECKER)); return true; } return false;