Skip to content

Commit 914923d

Browse files
committed
Add setting as known type
1 parent 3389461 commit 914923d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/wallet/walletdb.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const std::string OLD_KEY{"wkey"};
4040
const std::string ORDERPOSNEXT{"orderposnext"};
4141
const std::string POOL{"pool"};
4242
const std::string PURPOSE{"purpose"};
43+
const std::string SETTINGS{"settings"};
4344
const std::string TX{"tx"};
4445
const std::string VERSION{"version"};
4546
const std::string WATCHMETA{"watchmeta"};
@@ -407,7 +408,8 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
407408
return false;
408409
}
409410
} else if (strType != DBKeys::BESTBLOCK && strType != DBKeys::BESTBLOCK_NOMERKLE &&
410-
strType != DBKeys::MINVERSION && strType != DBKeys::ACENTRY && strType != DBKeys::VERSION) {
411+
strType != DBKeys::MINVERSION && strType != DBKeys::ACENTRY &&
412+
strType != DBKeys::VERSION && strType != DBKeys::SETTINGS) {
411413
wss.m_unknown_records++;
412414
}
413415
} catch (const std::exception& e) {

src/wallet/walletdb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ extern const std::string OLD_KEY;
7474
extern const std::string ORDERPOSNEXT;
7575
extern const std::string POOL;
7676
extern const std::string PURPOSE;
77+
extern const std::string SETTINGS;
7778
extern const std::string TX;
7879
extern const std::string VERSION;
7980
extern const std::string WATCHMETA;

0 commit comments

Comments
 (0)