aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
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/interfaces
parent64ebb0f97178687517c2060bf6b9931064607888 (diff)
rpc: getTransactionsUpdated via miner interface
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/mining.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/mining.h b/src/interfaces/mining.h
index 9494fd75bf..3ebc48dffa 100644
--- a/src/interfaces/mining.h
+++ b/src/interfaces/mining.h
@@ -41,6 +41,10 @@ public:
*/
virtual std::unique_ptr<node::CBlockTemplate> createNewBlock(const CScript& script_pub_key, bool use_mempool = true) = 0;
+ //! Return the number of transaction updates in the mempool,
+ //! used to decide whether to make a new block template.
+ virtual unsigned int getTransactionsUpdated() = 0;
+
/**
* Check a block is completely valid from start to finish.
* Only works on top of our current best block.