From 6f639ea5f1126f00db86100d3532ced21e12c655 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 27 Aug 2022 19:08:48 +0300 Subject: [PATCH] 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` --- src/wallet/walletdb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index eff739823c..362949eb35 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -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) {