Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 429 Lines • ▼ Show 20 Lines | try { | ||||
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) { | strType != DBKeys::SETTINGS) { | ||||
wss.m_unknown_records++; | wss.m_unknown_records++; | ||||
} | } | ||||
} catch (const std::exception &e) { | |||||
if (strErr.empty()) { | |||||
strErr = e.what(); | |||||
} | |||||
return false; | |||||
} catch (...) { | } catch (...) { | ||||
if (strErr.empty()) { | |||||
strErr = "Caught unknown exception in ReadKeyValue"; | |||||
} | |||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
bool WalletBatch::IsKeyType(const std::string &strType) { | bool WalletBatch::IsKeyType(const std::string &strType) { | ||||
return (strType == DBKeys::KEY || strType == DBKeys::MASTER_KEY || | return (strType == DBKeys::KEY || strType == DBKeys::MASTER_KEY || | ||||
strType == DBKeys::CRYPTED_KEY); | strType == DBKeys::CRYPTED_KEY); | ||||
▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines |