Add setting as known type

This commit is contained in:
Peter Bushnell 2019-07-27 13:07:30 +01:00
parent 33894612c0
commit 914923d125
2 changed files with 4 additions and 1 deletions

View file

@ -40,6 +40,7 @@ const std::string OLD_KEY{"wkey"};
const std::string ORDERPOSNEXT{"orderposnext"}; const std::string ORDERPOSNEXT{"orderposnext"};
const std::string POOL{"pool"}; const std::string POOL{"pool"};
const std::string PURPOSE{"purpose"}; const std::string PURPOSE{"purpose"};
const std::string SETTINGS{"settings"};
const std::string TX{"tx"}; const std::string TX{"tx"};
const std::string VERSION{"version"}; const std::string VERSION{"version"};
const std::string WATCHMETA{"watchmeta"}; const std::string WATCHMETA{"watchmeta"};
@ -407,7 +408,8 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
return false; return false;
} }
} else if (strType != DBKeys::BESTBLOCK && strType != DBKeys::BESTBLOCK_NOMERKLE && } else if (strType != DBKeys::BESTBLOCK && strType != DBKeys::BESTBLOCK_NOMERKLE &&
strType != DBKeys::MINVERSION && strType != DBKeys::ACENTRY && strType != DBKeys::VERSION) { strType != DBKeys::MINVERSION && strType != DBKeys::ACENTRY &&
strType != DBKeys::VERSION && strType != DBKeys::SETTINGS) {
wss.m_unknown_records++; wss.m_unknown_records++;
} }
} catch (const std::exception& e) { } catch (const std::exception& e) {

View file

@ -74,6 +74,7 @@ extern const std::string OLD_KEY;
extern const std::string ORDERPOSNEXT; extern const std::string ORDERPOSNEXT;
extern const std::string POOL; extern const std::string POOL;
extern const std::string PURPOSE; extern const std::string PURPOSE;
extern const std::string SETTINGS;
extern const std::string TX; extern const std::string TX;
extern const std::string VERSION; extern const std::string VERSION;
extern const std::string WATCHMETA; extern const std::string WATCHMETA;