Skip to content

Commit

Permalink
leftovers of bitcoin#12803
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 27, 2021
1 parent 05f4da4 commit 99608c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/script/sign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99608c8

Please sign in to comment.