diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-03-13 00:38:24 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-07-22 13:03:24 -0400 |
commit | b3d4f6c9619142948ab3d53551b4f3c0d7d73bde (patch) | |
tree | 4ab1faa0dbbcf3a5915af6904c3c502bd05ee9ae /src | |
parent | c88e87c3b2be3f97b712107e04285d06dfef3878 (diff) | |
download | bitcoin-b3d4f6c9619142948ab3d53551b4f3c0d7d73bde.tar.xz |
Log the actual wallet file version
The actual wallet file version is the minversion record, not the
version record.
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/walletdb.cpp | 3 |
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); |