From b3d4f6c9619142948ab3d53551b4f3c0d7d73bde Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 13 Mar 2019 00:38:24 -0400 Subject: [PATCH] Log the actual wallet file version The actual wallet file version is the minversion record, not the version record. --- src/wallet/walletdb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 6499204c8f3..2db18bec2bf 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);