diff options
| author | Andrew Chow <[email protected]> | 2019-03-13 00:38:24 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2019-07-22 13:03:24 -0400 |
| commit | b3d4f6c9619142948ab3d53551b4f3c0d7d73bde (patch) | |
| tree | 4ab1faa0dbbcf3a5915af6904c3c502bd05ee9ae /src/wallet/walletdb.cpp | |
| parent | Remove nFileVersion from CWalletScanState (diff) | |
| download | discoin-b3d4f6c9619142948ab3d53551b4f3c0d7d73bde.tar.xz discoin-b3d4f6c9619142948ab3d53551b4f3c0d7d73bde.zip | |
Log the actual wallet file version
The actual wallet file version is the minversion record, not the
version record.
Diffstat (limited to 'src/wallet/walletdb.cpp')
| -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 6499204c8..2db18bec2 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); |