diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-06 15:01:49 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-06 16:14:17 +0100 |
commit | 02464da5e4aa8c19d4fff3859dcdee822e2af78c (patch) | |
tree | 00784ec6963a8370dc424c679856abd61331874e /src/wallet/walletdb.h | |
parent | 870cd2b58aba30ecd57c624ab1f1724b3235cb4d (diff) | |
parent | d63ff6265b0c6ae30efcbb9120d4db419606198a (diff) |
Merge #9227: Make nWalletDBUpdated atomic to avoid a potential race.
d63ff62 Make nWalletDBUpdated atomic to avoid a potential race. (Patrick Strateman)
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r-- | src/wallet/walletdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index b9db55baa4..8437a95ba7 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(); |