aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-03-13 00:38:24 -0400
committerAndrew Chow <achow101-github@achow101.com>2019-07-22 13:03:24 -0400
commitb3d4f6c9619142948ab3d53551b4f3c0d7d73bde (patch)
tree4ab1faa0dbbcf3a5915af6904c3c502bd05ee9ae
parentc88e87c3b2be3f97b712107e04285d06dfef3878 (diff)
downloadbitcoin-b3d4f6c9619142948ab3d53551b4f3c0d7d73bde.tar.xz
Log the actual wallet file version
The actual wallet file version is the minversion record, not the version record.
-rw-r--r--src/wallet/walletdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp
index 6499204c8f..2db18bec2b 100644
--- a/src/wallet/walletdb.cpp
+++ b/src/wallet/walletdb.cpp
@@ -509,7 +509,8 @@ DBErrors WalletBatch::LoadWallet(CWallet* pwallet)
int last_client = CLIENT_VERSION;
ReadVersion(last_client);
- pwallet->WalletLogPrintf("nFileVersion = %d\n", last_client);
+ int wallet_version = pwallet->GetVersion();
+ pwallet->WalletLogPrintf("Wallet File Version = %d\n", wallet_version > 0 ? wallet_version : last_client);
pwallet->WalletLogPrintf("Keys: %u plaintext, %u encrypted, %u w/ metadata, %u total. Unknown wallet records: %u\n",
wss.nKeys, wss.nCKeys, wss.nKeyMeta, wss.nKeys + wss.nCKeys, wss.m_unknown_records);