aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-05-10 12:53:49 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-05-10 12:57:07 +0200
commit3e2c946cfdfdaae4b00793a554157762d1971705 (patch)
tree2aa8198e0e656595ef8210a5b1463a83427a452c /src/wallet/wallet.cpp
parentf7a21dae5dbf71d5bc00485215e84e6f2b309d0a (diff)
downloadbitcoin-3e2c946cfdfdaae4b00793a554157762d1971705.tar.xz
init: Move berkeleydb version reporting to wallet
Move the version reporting to Wallet::Verify, before starting verification of the wallet. This removes the dependency of init on a specific wallet database library. A further, trivial step towards resolving #7965.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp1
1 files changed, 1 insertions, 0 deletions
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);