aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-06-20 17:43:37 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-06-20 17:43:37 +0200
commitbbde6ffefea9587b07a9f8d4043b2dd23ef8c3c5 (patch)
tree919cb07632c5444726cbae0a8fd81b8bb26daa7b /src/node
parentaa2ce2d64696c030fb39f4e63b12271bb700eb28 (diff)
add node interface method for getting maximum mempool size
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interfaces.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index 2b36f4ceae..b8880d46db 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -273,6 +273,7 @@ public:
int64_t getTotalBytesSent() override { return m_context->connman ? m_context->connman->GetTotalBytesSent() : 0; }
size_t getMempoolSize() override { return m_context->mempool ? m_context->mempool->size() : 0; }
size_t getMempoolDynamicUsage() override { return m_context->mempool ? m_context->mempool->DynamicMemoryUsage() : 0; }
+ size_t getMempoolMaxUsage() override { return m_context->mempool ? m_context->mempool->m_opts.max_size_bytes : 0; }
bool getHeaderTip(int& height, int64_t& block_time) override
{
LOCK(::cs_main);