aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2015-10-13 00:57:41 -0700
committerMatt Corallo <git@bluematt.me>2015-10-13 01:00:19 -0700
commite8bcdce8a245af235f8be9853c8f81c9bda56412 (patch)
tree2404fef3f821029474459fbf6e5941757581a865 /src/txmempool.h
parent9c9b66f771ad904cd665f7f5f68e3279ebb2fa7e (diff)
Track (and define) ::minRelayTxFee in CTxMemPool
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index cee1a146da..e45867f713 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -285,6 +285,8 @@ private:
uint64_t totalTxSize; //! sum of all mempool tx' byte sizes
uint64_t cachedInnerUsage; //! sum of dynamic memory usage of all the map elements (NOT the maps themselves)
+ CFeeRate minReasonableRelayFee;
+
public:
typedef boost::multi_index_container<
CTxMemPoolEntry,
@@ -334,7 +336,12 @@ public:
std::map<COutPoint, CInPoint> mapNextTx;
std::map<uint256, std::pair<double, CAmount> > mapDeltas;
- CTxMemPool(const CFeeRate& _minRelayFee);
+ /** Create a new CTxMemPool.
+ * minReasonableRelayFee should be a feerate which is, roughly, somewhere
+ * around what it "costs" to relay a transaction around the network and
+ * below which we would reasonably say a transaction has 0-effective-fee.
+ */
+ CTxMemPool(const CFeeRate& _minReasonableRelayFee);
~CTxMemPool();
/**