aboutsummaryrefslogtreecommitdiff
path: root/src/crypter.h
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2014-04-06 00:18:52 -0700
committerMatt Corallo <git@bluematt.me>2014-08-10 18:36:06 -0700
commit1e21c17d208e310295475c0e4a46d750a5c9ba2d (patch)
tree247bec498d6cb2221a9e262cb88cfc5b2b95000f /src/crypter.h
parent36065cc529bb9be5655fcaaad2746edb7b6f4ddb (diff)
downloadbitcoin-1e21c17d208e310295475c0e4a46d750a5c9ba2d.tar.xz
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/crypter.h')
0 files changed, 0 insertions, 0 deletions