aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-03-09 20:56:58 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2017-06-05 22:27:57 +0000
commit19b3648bb52d27c3a9674159d71726b73fe532d9 (patch)
tree06736b4b84033fdffe3e820a1d1ab40fa91b14ec /src/wallet/db.h
parent74e87389616ce1147c65f0e49f3d84b817693ac6 (diff)
downloadbitcoin-19b3648bb52d27c3a9674159d71726b73fe532d9.tar.xz
CWalletDB: Store the update counter per wallet
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index 3c6870d169..1a583c3ce9 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -119,10 +119,14 @@ public:
*/
void Flush(bool shutdown);
+ void IncrementUpdateCounter();
+ unsigned int GetUpdateCounter();
+
private:
/** BerkeleyDB specific */
CDBEnv *env;
std::string strFile;
+ std::atomic<unsigned int> nUpdateCounter;
/** Return whether this database handle is a dummy for testing.
* Only to be used at a low level, application should ideally not care