Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show All 33 Lines | |||||
const std::string KEY{"key"}; | const std::string KEY{"key"}; | ||||
const std::string MASTER_KEY{"mkey"}; | const std::string MASTER_KEY{"mkey"}; | ||||
const std::string MINVERSION{"minversion"}; | const std::string MINVERSION{"minversion"}; | ||||
const std::string NAME{"name"}; | const std::string NAME{"name"}; | ||||
const std::string OLD_KEY{"wkey"}; | 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"}; | ||||
const std::string WATCHS{"watchs"}; | const std::string WATCHS{"watchs"}; | ||||
} // namespace DBKeys | } // namespace DBKeys | ||||
// | // | ||||
// WalletBatch | // WalletBatch | ||||
▲ Show 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | try { | ||||
if (!pwallet->SetWalletFlags(flags, true)) { | if (!pwallet->SetWalletFlags(flags, true)) { | ||||
strErr = "Error reading wallet database: Unknown non-tolerable " | strErr = "Error reading wallet database: Unknown non-tolerable " | ||||
"wallet flags found"; | "wallet flags found"; | ||||
return false; | return false; | ||||
} | } | ||||
} else if (strType != DBKeys::BESTBLOCK && | } else if (strType != DBKeys::BESTBLOCK && | ||||
strType != DBKeys::BESTBLOCK_NOMERKLE && | strType != DBKeys::BESTBLOCK_NOMERKLE && | ||||
strType != DBKeys::MINVERSION && | strType != DBKeys::MINVERSION && | ||||
strType != DBKeys::ACENTRY && strType != DBKeys::VERSION) { | strType != DBKeys::ACENTRY && strType != DBKeys::VERSION && | ||||
strType != DBKeys::SETTINGS) { | |||||
wss.m_unknown_records++; | wss.m_unknown_records++; | ||||
} | } | ||||
} catch (...) { | } catch (...) { | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines |