aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2017-03-09 20:56:58 +0000
committerLuke Dashjr <[email protected]>2017-06-05 22:27:57 +0000
commit19b3648bb52d27c3a9674159d71726b73fe532d9 (patch)
tree06736b4b84033fdffe3e820a1d1ab40fa91b14ec /src/wallet/db.h
parentBugfix: ForceSetArg should replace entr(ies) in mapMultiArgs, not append (diff)
downloaddiscoin-19b3648bb52d27c3a9674159d71726b73fe532d9.tar.xz
discoin-19b3648bb52d27c3a9674159d71726b73fe532d9.zip
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 3c6870d16..1a583c3ce 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