aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-06-27 15:47:00 -0400
committerCarl Dong <contact@carldong.me>2022-06-28 15:36:36 -0400
commit386c9472c8764738282e6d163b42e15a8feda7ea (patch)
treee1598d961ceba7cee592cfd3234633e8e66ff99c /src/txmempool.h
parent82f00de7a6a60cbc9ad0c6e1d0ffb1bc70c49af5 (diff)
downloadbitcoin-386c9472c8764738282e6d163b42e15a8feda7ea.tar.xz
mempool: Make GetMinFee() with custom size protected
The version of GetMinFee() with a custom size specification is and should only be used by tests. Mark it as protected and use a derived class exposing GetMinFee() as public in tests.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index d5d573b4f9..95fd56879f 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -453,6 +453,8 @@ protected:
bool m_is_loaded GUARDED_BY(cs){false};
+ CFeeRate GetMinFee(size_t sizelimit) const;
+
public:
static const int ROLLING_FEE_HALFLIFE = 60 * 60 * 12; // public only for testing
@@ -707,7 +709,6 @@ public:
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.
* pvNoSpendsRemaining, if set, will be populated with the list of outpoints