mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
test util: split up ConnectBlock from MineBlock
This commit is contained in:
@@ -92,6 +92,11 @@ COutPoint MineBlock(const NodeContext& node, std::shared_ptr<CBlock>& block)
|
||||
assert(block->nNonce);
|
||||
}
|
||||
|
||||
return ProcessBlock(node, block);
|
||||
}
|
||||
|
||||
COutPoint ProcessBlock(const NodeContext& node, const std::shared_ptr<CBlock>& block)
|
||||
{
|
||||
auto& chainman{*Assert(node.chainman)};
|
||||
const auto old_height = WITH_LOCK(chainman.GetMutex(), return chainman.ActiveHeight());
|
||||
bool new_block;
|
||||
|
||||
Reference in New Issue
Block a user