aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r--src/wallet/walletdb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index fc61228be1..040aa092e1 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -144,7 +144,7 @@ private:
template <typename K, typename T>
bool WriteIC(const K& key, const T& value, bool fOverwrite = true)
{
- if (!batch.Write(key, value, fOverwrite)) {
+ if (!m_batch.Write(key, value, fOverwrite)) {
return false;
}
m_database.IncrementUpdateCounter();
@@ -154,7 +154,7 @@ private:
template <typename K>
bool EraseIC(const K& key)
{
- if (!batch.Erase(key)) {
+ if (!m_batch.Erase(key)) {
return false;
}
m_database.IncrementUpdateCounter();
@@ -163,7 +163,7 @@ private:
public:
explicit WalletBatch(WalletDatabase& database, const char* pszMode = "r+", bool _fFlushOnClose = true) :
- batch(database, pszMode, _fFlushOnClose),
+ m_batch(database, pszMode, _fFlushOnClose),
m_database(database)
{
}
@@ -244,7 +244,7 @@ public:
//! Write wallet version
bool WriteVersion(int nVersion);
private:
- BerkeleyBatch batch;
+ BerkeleyBatch m_batch;
WalletDatabase& m_database;
};