aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2012-05-22 22:55:49 +0000
committerLuke Dashjr <[email protected]>2012-05-22 22:55:49 +0000
commit3b36da6d277c6f5ad671343e724e0336ce55c893 (patch)
tree1e3761e0276bc4ea9b571868f61c4ae7fce7c3e6 /src/wallet.cpp
parentFilter out whitespace and zero-width non-breaking spaces in validator (diff)
parentPrevent crashes due to missing or corrupted blk????.dat records (diff)
downloaddiscoin-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.cpp3
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);
}