aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2024-05-30 16:46:29 +0200
committerSjors Provoost <sjors@sprovoost.nl>2024-06-18 18:47:52 +0200
commit9e228351e761d8d24413bbc4ac1610b4f3dec2bf (patch)
treeffc6e235eda844e355b17e9451b50b265f1dd310 /src/node
parent64ebb0f97178687517c2060bf6b9931064607888 (diff)
rpc: getTransactionsUpdated via miner interface
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interfaces.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index 356a01b286..91ee858597 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -855,6 +855,11 @@ public:
return tip->GetBlockHash();
}
+ unsigned int getTransactionsUpdated() override
+ {
+ return context()->mempool->GetTransactionsUpdated();
+ }
+
bool testBlockValidity(BlockValidationState& state, const CBlock& block, bool check_merkle_root) override
{
LOCK(::cs_main);