mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
rpc: call processNewBlock via miner interface
This commit is contained in:
parent
9e228351e7
commit
7b4d3249ce
3 changed files with 21 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue