aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2017-08-22 17:47:59 -0700
committerJim Posen <jimpo@coinbase.com>2017-09-21 12:24:23 -0700
commit7a1e873b27b790c965d9927ecd465710dc103136 (patch)
treeec57b1c186b742f4539c40de63472c287ba78f23 /src/script
parentd7afe2d1577eb3f6775301c81b94a191e0db99d9 (diff)
[script] Unit tests for IsMine
Does not test watch-only addresses.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/ismine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/ismine.cpp b/src/script/ismine.cpp
index 0a39619734..c3aade1774 100644
--- a/src/script/ismine.cpp
+++ b/src/script/ismine.cpp
@@ -46,6 +46,8 @@ isminetype IsMine(const CKeyStore &keystore, const CTxDestination& dest, bool& i
isminetype IsMine(const CKeyStore &keystore, const CScript& scriptPubKey, bool& isInvalid, SigVersion sigversion)
{
+ isInvalid = false;
+
std::vector<valtype> vSolutions;
txnouttype whichType;
if (!Solver(scriptPubKey, whichType, vSolutions)) {