aboutsummaryrefslogtreecommitdiff
path: root/src/policy/fees.h
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-02-15 09:24:11 -0500
committerAlex Morcos <morcos@chaincode.com>2017-04-10 13:51:51 -0400
commitdbb9e3699b8e835fd72a5db2c22927d828484c32 (patch)
treeebbcfd000a92b47b7c882eb0eb003bd55e1075f5 /src/policy/fees.h
parentf6187d6e393b5ca587604b678f91496d50149a20 (diff)
Give CBlockPolicyEstimator it's own lock
Diffstat (limited to 'src/policy/fees.h')
-rw-r--r--src/policy/fees.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/policy/fees.h b/src/policy/fees.h
index 7abd1d43a1..e11a6582a4 100644
--- a/src/policy/fees.h
+++ b/src/policy/fees.h
@@ -8,6 +8,7 @@
#include "amount.h"
#include "uint256.h"
#include "random.h"
+#include "sync.h"
#include <map>
#include <string>
@@ -249,6 +250,8 @@ private:
unsigned int trackedTxs;
unsigned int untrackedTxs;
+ mutable CCriticalSection cs_feeEstimator;
+
/** Process a transaction confirmed in a block*/
bool processBlockTx(unsigned int nBlockHeight, const CTxMemPoolEntry* entry);