diff options
author | Gregory Maxwell <greg@xiph.org> | 2014-04-06 00:18:52 -0700 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2014-08-10 18:36:06 -0700 |
commit | 1e21c17d208e310295475c0e4a46d750a5c9ba2d (patch) | |
tree | 247bec498d6cb2221a9e262cb88cfc5b2b95000f /doc/assets-attribution.md | |
parent | 36065cc529bb9be5655fcaaad2746edb7b6f4ddb (diff) |
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 'doc/assets-attribution.md')
0 files changed, 0 insertions, 0 deletions