aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorcoderrr <coderrr.contact@gmail.com>2012-01-02 14:27:41 +0700
committercoderrr <coderrr.contact@gmail.com>2012-01-03 06:24:52 +0700
commit6ec76ca09efca03236a67db65cbfe44d7c7a878e (patch)
treea7588c2d89de58240713aa72751cffa422455f87 /src/script.cpp
parent625b56de6491170ad6a2e45c57d974fca6160750 (diff)
make sure IsMine only returns true when we own all keys
Diffstat (limited to 'src/script.cpp')
-rw-r--r--src/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.cpp b/src/script.cpp
index f576e14a8b..34872808b3 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -1436,7 +1436,7 @@ bool IsMine(const CKeyStore &keystore, const CScript& scriptPubKey)
// them) enable spend-out-from-under-you attacks, especially
// in shared-wallet situations.
vector<valtype> keys(vSolutions.begin()+1, vSolutions.begin()+vSolutions.size()-1);
- return HaveKeys(vSolutions, keystore);
+ return HaveKeys(keys, keystore) == keys.size();
}
}
return false;