aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2011-07-13 01:07:49 -0400
committerJeff Garzik <[email protected]>2011-07-13 01:07:49 -0400
commit116df55e21e5380c1cf4bccc62546757d44c1294 (patch)
tree3001721aa336b507f8d8c88e1db3166ab1806cc8 /src/wallet.cpp
parentMerge pull request #399 from muggenhor/warning-fixes (diff)
downloaddiscoin-116df55e21e5380c1cf4bccc62546757d44c1294.tar.xz
discoin-116df55e21e5380c1cf4bccc62546757d44c1294.zip
Update CWallet::LoadWallet for proper return type.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index f4df5ecf6..a60b0b4fa 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1122,7 +1122,7 @@ string CWallet::SendMoneyToBitcoinAddress(string strAddress, int64 nValue, CWall
-bool CWallet::LoadWallet(bool& fFirstRunRet)
+int CWallet::LoadWallet(bool& fFirstRunRet)
{
if (!fFileBacked)
return false;
@@ -1139,11 +1139,11 @@ bool CWallet::LoadWallet(bool& fFirstRunRet)
SetDefaultKey(GetOrReuseKeyFromPool());
if (!SetAddressBookName(PubKeyToAddress(vchDefaultKey), ""))
- return false;
+ return DB_LOAD_FAIL;
}
CreateThread(ThreadFlushWalletDB, &strWalletFile);
- return true;
+ return DB_LOAD_OK;
}