Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | public: | ||||
CWalletScanState() { | CWalletScanState() { | ||||
nKeys = nCKeys = nWatchKeys = nKeyMeta = 0; | nKeys = nCKeys = nWatchKeys = nKeyMeta = 0; | ||||
fIsEncrypted = false; | fIsEncrypted = false; | ||||
fAnyUnordered = false; | fAnyUnordered = false; | ||||
nFileVersion = 0; | nFileVersion = 0; | ||||
} | } | ||||
}; | }; | ||||
bool ReadKeyValue(CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, | static bool ReadKeyValue(CWallet *pwallet, CDataStream &ssKey, | ||||
CWalletScanState &wss, std::string &strType, | CDataStream &ssValue, CWalletScanState &wss, | ||||
std::string &strErr) { | std::string &strType, std::string &strErr) { | ||||
try { | try { | ||||
// Unserialize | // Unserialize | ||||
// Taking advantage of the fact that pair serialization is just the two | // Taking advantage of the fact that pair serialization is just the two | ||||
// items serialized one after the other. | // items serialized one after the other. | ||||
ssKey >> strType; | ssKey >> strType; | ||||
if (strType == "name") { | if (strType == "name") { | ||||
std::string strAddress; | std::string strAddress; | ||||
ssKey >> strAddress; | ssKey >> strAddress; | ||||
▲ Show 20 Lines • Show All 603 Lines • Show Last 20 Lines |