X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=43fb6b6da39cde2e7be4d8f2ea54cf6fbd12024b;hb=76ef6d89b98b57d2ee5c6db993cd1cc375dd3726;hp=737f0e6238c0b8bd60694d2580a1e97c57911963;hpb=c4a3bf9e552f25a5ad0efb8cf62d344a7dad53ed;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 737f0e6..43fb6b6 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