aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2011-07-05 03:06:19 +0200
committerMatt Corallo <[email protected]>2011-07-05 18:36:01 +0200
commit7ec552676c66488fe00fb503d02ec4a389a715b7 (patch)
tree6791d8dd85e2aaa82ee7b2396b123716ccd093f2 /src/wallet.cpp
parentMerge pull request #379 from gavinandresen/nocommas (diff)
downloaddiscoin-7ec552676c66488fe00fb503d02ec4a389a715b7.tar.xz
discoin-7ec552676c66488fe00fb503d02ec4a389a715b7.zip
Add minversion to wallet.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index e54bbb3f4..ba9221f18 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -958,8 +958,9 @@ bool CWallet::LoadWallet(bool& fFirstRunRet)
if (!fFileBacked)
return false;
fFirstRunRet = false;
- if (!CWalletDB(strWalletFile,"cr+").LoadWallet(this))
- return false;
+ int nLoadWalletRet = CWalletDB(strWalletFile,"cr+").LoadWallet(this);
+ if (nLoadWalletRet != DB_LOAD_OK)
+ return nLoadWalletRet;
fFirstRunRet = vchDefaultKey.empty();
if (!mapKeys.count(vchDefaultKey))