rpc: call processNewBlock via miner interface

This commit is contained in:
Sjors Provoost committed 2024-06-18 18:47:52 +02:00
1 parent 9e228351e7
commit 7b4d3249ce
3 files changed
+21 -5

No files matched your search

+5
View File
@@ -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();