diff options
| author | coderrr <[email protected]> | 2012-01-02 14:27:41 +0700 |
|---|---|---|
| committer | coderrr <[email protected]> | 2012-01-03 06:24:52 +0700 |
| commit | 6ec76ca09efca03236a67db65cbfe44d7c7a878e (patch) | |
| tree | a7588c2d89de58240713aa72751cffa422455f87 /src/script.cpp | |
| parent | Merge branch 'opevalcountfix' of https://github.com/laanwj/bitcoin (diff) | |
| download | discoin-6ec76ca09efca03236a67db65cbfe44d7c7a878e.tar.xz discoin-6ec76ca09efca03236a67db65cbfe44d7c7a878e.zip | |
make sure IsMine only returns true when we own all keys
Diffstat (limited to 'src/script.cpp')
| -rw-r--r-- | src/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.cpp b/src/script.cpp index f576e14a8..34872808b 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; |