diff options
| author | Luke Dashjr <[email protected]> | 2012-05-22 22:55:49 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-05-22 22:55:49 +0000 |
| commit | 3b36da6d277c6f5ad671343e724e0336ce55c893 (patch) | |
| tree | 1e3761e0276bc4ea9b571868f61c4ae7fce7c3e6 /src/wallet.cpp | |
| parent | Filter out whitespace and zero-width non-breaking spaces in validator (diff) | |
| parent | Prevent crashes due to missing or corrupted blk????.dat records (diff) | |
| download | discoin-3b36da6d277c6f5ad671343e724e0336ce55c893.tar.xz discoin-3b36da6d277c6f5ad671343e724e0336ce55c893.zip | |
Merge branch '0.4.x' into 0.5.x
Conflicts:
src/ui.cpp
src/ui.h
src/uibase.cpp
src/xpm/about.xpm
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 3cce33608..3ffad27e8 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -164,7 +164,8 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase) if (fFileBacked) { pwalletdbEncryption = new CWalletDB(strWalletFile); - pwalletdbEncryption->TxnBegin(); + if (!pwalletdbEncryption->TxnBegin()) + return false; pwalletdbEncryption->WriteMasterKey(nMasterKeyMaxID, kMasterKey); } |