35 auto& block_template_manager{*
Assert(
node.block_template_manager)};
40 block.fChecked =
true;
42 Assert(
node.chainman->ProcessNewBlock(std::make_shared<const CBlock>(block),
true,
true,
nullptr));
43 node.validation_signals->SyncWithValidationInterfaceQueue();
71 clock += std::chrono::seconds{consensus.nPowTargetSpacing * 2};
static std::unique_ptr< PeerManager > make(CConnman &connman, AddrMan &addrman, BanMan *banman, ChainstateManager &chainman, CTxMemPool &pool, node::Warnings &warnings, Options opts)
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.
bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params ¶ms)
Check whether a block hash satisfies the proof-of-work requirement specified by nBits.
std::unique_ptr< ValidationSignals > validation_signals
Issues calls about blocks and transactions.
std::unique_ptr< CConnman > connman
std::unique_ptr< CTxMemPool > mempool
std::unique_ptr< AddrMan > addrman
std::unique_ptr< ChainstateManager > chainman
std::unique_ptr< node::Warnings > warnings
Manages all the node warnings.