fix(wallet): do not count DBKeys::PRIVATESEND_SALT and DBKeys::COINJOIN_SALT keys as unknown

Before: `Unknown wallet records: 2`
After: `Unknown wallet records: 0`
This commit is contained in:
UdjinM6 2022-08-27 19:08:48 +03:00
parent 8a391189cc
commit 6f639ea5f1

View File

@ -488,7 +488,8 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
return false;
} else if (strType != DBKeys::BESTBLOCK && strType != DBKeys::BESTBLOCK_NOMERKLE &&
strType != DBKeys::MINVERSION && strType != DBKeys::ACENTRY &&
strType != DBKeys::VERSION && strType != DBKeys::SETTINGS) {
strType != DBKeys::VERSION && strType != DBKeys::SETTINGS &&
strType != DBKeys::PRIVATESEND_SALT && strType != DBKeys::COINJOIN_SALT) {
wss.m_unknown_records++;
}
} catch (const std::exception& e) {