diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-10-01 08:50:24 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-10-01 08:50:24 +0200 |
commit | d0c4197ef6ecfdaff792579810107e2f1b8b319e (patch) | |
tree | 6cedef65a5c754fcafe5b577d91b5fd70ff9e226 /src/wallet.cpp | |
parent | 870da77da632501e8eec58ed73e8f30549cc41e9 (diff) |
change exit(1) to an assert in CWallet::EncryptWallet
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 897f53b8b7..be063ccb42 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -15,6 +15,8 @@ #include "util.h" #include "utilmoneystr.h" +#include <assert.h> + #include <boost/algorithm/string/replace.hpp> #include <boost/thread.hpp> @@ -444,7 +446,7 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase) } // We now probably have half of our keys encrypted in memory, and half not... // die and let the user reload their unencrypted wallet. - exit(1); + assert(false); } // Encryption was introduced in version 0.4.0 @@ -456,7 +458,7 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase) delete pwalletdbEncryption; // We now have keys encrypted in memory, but no on disk... // die to avoid confusion and let the user reload their unencrypted wallet. - exit(1); + assert(false); } delete pwalletdbEncryption; |