mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
leftovers of bitcoin#12714
This commit is contained in:
parent
01fccc4694
commit
05f4da48fc
@ -353,12 +353,12 @@ public:
|
||||
|
||||
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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user