diff options
| author | Gavin Andresen <[email protected]> | 2011-11-20 10:39:01 -0500 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2011-11-20 13:52:59 -0500 |
| commit | 76ef6d89b98b57d2ee5c6db993cd1cc375dd3726 (patch) | |
| tree | 7b0dd4a0c8e0c95ddfa4f518394c363aadbad386 /src/wallet.cpp | |
| parent | Only remove database log files on shutdown after wallet encryption/rewrite (diff) | |
| download | discoin-76ef6d89b98b57d2ee5c6db993cd1cc375dd3726.tar.xz discoin-76ef6d89b98b57d2ee5c6db993cd1cc375dd3726.zip | |
Never remove database files on shutdown, it caused unreadable wallets on some testers' machines.
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 737f0e623..43fb6b6da 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -194,8 +194,7 @@ bool CWallet::EncryptWallet(const string& strWalletPassphrase) // Need to completely rewrite the wallet file; if we don't, bdb might keep // bits of the unencrypted private key in slack space in the database file. - if (CDB::Rewrite(strWalletFile)) - RemoveLogFilesOnShutdown(true); + CDB::Rewrite(strWalletFile); } return true; @@ -1134,7 +1133,6 @@ int CWallet::LoadWallet(bool& fFirstRunRet) { if (CDB::Rewrite(strWalletFile, "\x04pool")) { - RemoveLogFilesOnShutdown(true); setKeyPool.clear(); // Note: can't top-up keypool here, because wallet is locked. // User will be prompted to unlock wallet the next operation |