rpc: call processNewBlock via miner interface

This commit is contained in:
Sjors Provoost
2024-05-30 17:06:59 +02:00
parent 9e228351e7
commit 7b4d3249ce
3 changed files with 21 additions and 5 deletions

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();