aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2016-11-26 19:32:30 -0800
committerPatrick Strateman <patrick.strateman@gmail.com>2016-12-21 13:49:48 -0800
commitd63ff6265b0c6ae30efcbb9120d4db419606198a (patch)
treea9ea9ba1bcc85f854b6164d8e9689a95eaf5bc15 /src/wallet/walletdb.h
parent76fec09d878d6dbf214bdb6228d480bd9195db4c (diff)
downloadbitcoin-d63ff6265b0c6ae30efcbb9120d4db419606198a.tar.xz
Make nWalletDBUpdated atomic to avoid a potential race.
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r--src/wallet/walletdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index eb25ac613d..d7036aabdd 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -176,10 +176,11 @@ public:
//! write the hdchain model (external chain child index counter)
bool WriteHDChain(const CHDChain& chain);
+ static void IncrementUpdateCounter();
+ static unsigned int GetUpdateCounter();
private:
CWalletDB(const CWalletDB&);
void operator=(const CWalletDB&);
-
};
void ThreadFlushWalletDB(const std::string& strFile);