From 7b4d3249ced93ec5986500e43b324005ed89502f Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Thu, 30 May 2024 17:06:59 +0200 Subject: rpc: call processNewBlock via miner interface --- src/node/interfaces.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/node/interfaces.cpp') diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 91ee858597..2633ff1b98 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -855,6 +855,11 @@ public: return tip->GetBlockHash(); } + bool processNewBlock(const std::shared_ptr& block, bool* new_block) override + { + return chainman().ProcessNewBlock(block, /*force_processing=*/true, /*min_pow_checked=*/true, /*new_block=*/new_block); + } + unsigned int getTransactionsUpdated() override { return context()->mempool->GetTransactionsUpdated(); -- cgit v1.2.3