aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index 32319ac181..d5d573b4f9 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -564,6 +564,8 @@ public:
using Options = kernel::MemPoolOptions;
+ const int64_t m_max_size_bytes;
+
/** Create a new CTxMemPool.
* Sanity checks will be off by default for performance, because otherwise
* accepting transactions becomes O(N^2) where N is the number of transactions
@@ -702,6 +704,9 @@ public:
* takes the fee rate to go back down all the way to 0. When the feerate
* would otherwise be half of this, it is set to 0 instead.
*/
+ CFeeRate GetMinFee() const {
+ return GetMinFee(m_max_size_bytes);
+ }
CFeeRate GetMinFee(size_t sizelimit) const;
/** Remove transactions from the mempool until its dynamic size is <= sizelimit.