Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Lines | if (result != DBErrors::LOAD_OK) { | ||||
return result; | return result; | ||||
} | } | ||||
// Last client version to open this wallet, was previously the file version | // Last client version to open this wallet, was previously the file version | ||||
// number | // number | ||||
int last_client = CLIENT_VERSION; | int last_client = CLIENT_VERSION; | ||||
ReadVersion(last_client); | 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/ " | pwallet->WalletLogPrintf("Keys: %u plaintext, %u encrypted, %u w/ " | ||||
"metadata, %u total. Unknown wallet records: %u\n", | "metadata, %u total. Unknown wallet records: %u\n", | ||||
wss.nKeys, wss.nCKeys, wss.nKeyMeta, | wss.nKeys, wss.nCKeys, wss.nKeyMeta, | ||||
wss.nKeys + wss.nCKeys, wss.m_unknown_records); | wss.nKeys + wss.nCKeys, wss.m_unknown_records); | ||||
// nTimeFirstKey is only reliable if all keys have metadata | // nTimeFirstKey is only reliable if all keys have metadata | ||||
if ((wss.nKeys + wss.nCKeys + wss.nWatchKeys) != wss.nKeyMeta) { | if ((wss.nKeys + wss.nCKeys + wss.nWatchKeys) != wss.nKeyMeta) { | ||||
▲ Show 20 Lines • Show All 285 Lines • Show Last 20 Lines |