diff options
| author | Gregory Maxwell <[email protected]> | 2014-04-06 00:18:52 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2014-08-10 18:36:06 -0700 |
| commit | 1e21c17d208e310295475c0e4a46d750a5c9ba2d (patch) | |
| tree | 247bec498d6cb2221a9e262cb88cfc5b2b95000f /src/protocol.cpp | |
| parent | Merge branch 'patch-4' of git://github.com/benhc123/bitcoin into merge-PR4653 (diff) | |
| download | discoin-1e21c17d208e310295475c0e4a46d750a5c9ba2d.tar.xz discoin-1e21c17d208e310295475c0e4a46d750a5c9ba2d.zip | |
Make CCryptoKeyStore::Unlock check all keys.
CCryptoKeyStore::Unlock has a loop to attempt decrypting each key which
only executes once, likely due to a simple mistake when the code was
originally written.
This patch fixes the behavior by making it check all keys. It also adds
a fatal assertion in the case some decrypt but some do not, since that
indicates that the wallet is in some kind of really bad state.
This may make unlocking noticeably slower on wallets with many keys.
Diffstat (limited to 'src/protocol.cpp')
0 files changed, 0 insertions, 0 deletions