Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | while (true) { | ||||
entries.push_back(acentry); | entries.push_back(acentry); | ||||
} | } | ||||
pcursor->close(); | pcursor->close(); | ||||
} | } | ||||
class CWalletScanState { | class CWalletScanState { | ||||
public: | public: | ||||
unsigned int nKeys; | unsigned int nKeys{0}; | ||||
unsigned int nCKeys; | unsigned int nCKeys{0}; | ||||
unsigned int nWatchKeys; | unsigned int nWatchKeys{0}; | ||||
unsigned int nKeyMeta; | unsigned int nKeyMeta{0}; | ||||
unsigned int m_unknown_records; | unsigned int m_unknown_records{0}; | ||||
bool fIsEncrypted; | bool fIsEncrypted{false}; | ||||
bool fAnyUnordered; | bool fAnyUnordered{false}; | ||||
int nFileVersion; | int nFileVersion{0}; | ||||
std::vector<TxId> vWalletUpgrade; | std::vector<TxId> vWalletUpgrade; | ||||
CWalletScanState() { | CWalletScanState() {} | ||||
nKeys = nCKeys = nWatchKeys = nKeyMeta = m_unknown_records = 0; | |||||
fIsEncrypted = false; | |||||
fAnyUnordered = false; | |||||
nFileVersion = 0; | |||||
} | |||||
}; | }; | ||||
static bool ReadKeyValue(CWallet *pwallet, CDataStream &ssKey, | static bool ReadKeyValue(CWallet *pwallet, CDataStream &ssKey, | ||||
CDataStream &ssValue, CWalletScanState &wss, | CDataStream &ssValue, CWalletScanState &wss, | ||||
std::string &strType, std::string &strErr) | std::string &strType, std::string &strErr) | ||||
EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet) { | EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet) { | ||||
try { | try { | ||||
// Unserialize | // Unserialize | ||||
▲ Show 20 Lines • Show All 613 Lines • Show Last 20 Lines |