Skip to content

Commit

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

0 comments on commit 05f4da4

Please sign in to comment.