|
|
|
@ -41,7 +41,7 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
@@ -41,7 +41,7 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
|
|
|
|
|
txnouttype whichType; |
|
|
|
|
if (!Solver(scriptPubKey, whichType, vSolutions)) { |
|
|
|
|
if (keystore.HaveWatchOnly(scriptPubKey)) |
|
|
|
|
return ISMINE_WATCH_NOPUBKEY; |
|
|
|
|
return ISMINE_WATCH_UNSOLVABLE; |
|
|
|
|
return ISMINE_NO; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
@@ -89,7 +89,7 @@ isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
|
|
|
|
|
if (keystore.HaveWatchOnly(scriptPubKey)) { |
|
|
|
|
// TODO: This could be optimized some by doing some work after the above solver
|
|
|
|
|
CScript scriptSig; |
|
|
|
|
return ProduceSignature(DummySignatureCreator(&keystore), scriptPubKey, scriptSig) ? ISMINE_WATCH_PUBKEY : ISMINE_WATCH_NOPUBKEY; |
|
|
|
|
return ProduceSignature(DummySignatureCreator(&keystore), scriptPubKey, scriptSig) ? ISMINE_WATCH_SOLVABLE : ISMINE_WATCH_UNSOLVABLE; |
|
|
|
|
} |
|
|
|
|
return ISMINE_NO; |
|
|
|
|
} |
|
|
|
|