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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user