aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-05-10 15:15:40 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-05-10 15:15:47 +0200
commit41138f914d16748df61ee62e7910b015afb5348c (patch)
tree2aa8198e0e656595ef8210a5b1463a83427a452c
parentf7a21dae5dbf71d5bc00485215e84e6f2b309d0a (diff)
parent3e2c946cfdfdaae4b00793a554157762d1971705 (diff)
Merge #8036: init: Move berkeleydb version reporting to wallet
3e2c946 init: Move berkeleydb version reporting to wallet (Wladimir J. van der Laan)
-rw-r--r--src/init.cpp5
-rw-r--r--src/wallet/wallet.cpp1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/init.cpp b/src/init.cpp
index b06f448a00..a46cc52a84 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -37,9 +37,7 @@
#include "utilmoneystr.h"
#include "validationinterface.h"
#ifdef ENABLE_WALLET
-#include "wallet/db.h"
#include "wallet/wallet.h"
-#include "wallet/walletdb.h"
#endif
#include <stdint.h>
#include <stdio.h>
@@ -986,9 +984,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
if (fPrintToDebugLog)
OpenDebugLog();
-#ifdef ENABLE_WALLET
- LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0));
-#endif
if (!fLogTimestamps)
LogPrintf("Startup time: %s\n", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime()));
LogPrintf("Default data directory %s\n", GetDefaultDataDir().string());
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 29d7138547..d32fe43ed8 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -368,6 +368,7 @@ void CWallet::Flush(bool shutdown)
bool CWallet::Verify()
{
+ LogPrintf("Using BerkeleyDB version %s\n", DbEnv::version(0, 0, 0));
std::string walletFile = GetArg("-wallet", DEFAULT_WALLET_DAT);
LogPrintf("Using wallet %s\n", walletFile);