aboutsummaryrefslogtreecommitdiff
path: root/src/node/interfaces.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2024-05-30 17:06:59 +0200
committerSjors Provoost <sjors@sprovoost.nl>2024-06-18 18:47:52 +0200
commit7b4d3249ced93ec5986500e43b324005ed89502f (patch)
tree4403ed205051e0873ff424b1bb2ac523645c9393 /src/node/interfaces.cpp
parent9e228351e761d8d24413bbc4ac1610b4f3dec2bf (diff)
rpc: call processNewBlock via miner interface
Diffstat (limited to 'src/node/interfaces.cpp')
-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 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<const CBlock>& 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();