Log the actual wallet file version

The actual wallet file version is the minversion record, not the
version record.
This commit is contained in:
Andrew Chow 2019-03-13 00:38:24 -04:00
parent c88e87c3b2
commit b3d4f6c961

View file

@ -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);