Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | |||||
bool WalletBatch::ErasePool(int64_t nPool) { | bool WalletBatch::ErasePool(int64_t nPool) { | ||||
return EraseIC(std::make_pair(std::string("pool"), nPool)); | return EraseIC(std::make_pair(std::string("pool"), nPool)); | ||||
} | } | ||||
bool WalletBatch::WriteMinVersion(int nVersion) { | bool WalletBatch::WriteMinVersion(int nVersion) { | ||||
return WriteIC(std::string("minversion"), nVersion); | return WriteIC(std::string("minversion"), nVersion); | ||||
} | } | ||||
bool WalletBatch::ReadAccount(const std::string &strAccount, | |||||
CAccount &account) { | |||||
account.SetNull(); | |||||
return m_batch.Read(std::make_pair(std::string("acc"), strAccount), | |||||
account); | |||||
} | |||||
bool WalletBatch::WriteAccount(const std::string &strAccount, | |||||
const CAccount &account) { | |||||
return WriteIC(std::make_pair(std::string("acc"), strAccount), account); | |||||
} | |||||
bool WalletBatch::EraseAccount(const std::string &strAccount) { | |||||
return EraseIC(std::make_pair(std::string("acc"), strAccount)); | |||||
} | |||||
class CWalletScanState { | class CWalletScanState { | ||||
public: | public: | ||||
unsigned int nKeys{0}; | unsigned int nKeys{0}; | ||||
unsigned int nCKeys{0}; | unsigned int nCKeys{0}; | ||||
unsigned int nWatchKeys{0}; | unsigned int nWatchKeys{0}; | ||||
unsigned int nKeyMeta{0}; | unsigned int nKeyMeta{0}; | ||||
unsigned int m_unknown_records{0}; | unsigned int m_unknown_records{0}; | ||||
bool fIsEncrypted{false}; | bool fIsEncrypted{false}; | ||||
▲ Show 20 Lines • Show All 615 Lines • Show Last 20 Lines |