From bbde6ffefea9587b07a9f8d4043b2dd23ef8c3c5 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Thu, 20 Jun 2024 17:43:37 +0200 Subject: add node interface method for getting maximum mempool size --- src/node/interfaces.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/node') 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); -- cgit v1.2.3