From 99608c8b991c525e9bbb4e56712041c85a5634fb Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 18 Jun 2021 13:56:49 +0300 Subject: [PATCH] leftovers of bitcoin#12803 --- src/script/sign.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/script/sign.cpp b/src/script/sign.cpp index 71ac54cb1b..3125c67d38 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;