Connect a single block to the tip, updating the mempool and coins view.
Synopsis
Declared in <validation.h>
[[requires_capability(0x7f9513ab59b0, 0x7f9513ab5a28), requires_capability(0x7f9502c98a20, 0x7f9502c98a98), requires_capability(0x7f952544a750, 0x7f952544a7c8), requires_capability(0x7f9517400a30, 0x7f9517400aa8)]]
bool
ConnectTip(
BlockValidationState& state,
CBlockIndex* pindexNew,
std::shared_ptr<CBlock const> block_to_connect,
std::vector<ConnectedBlock>& connected_blocks,
DisconnectedBlockTransactions& disconnectpool);
Return Value
true unless a system error occurred.
Parameters
Name |
Description |
state |
Validation state updated with the reason for any failure. |
pindexNew |
Block index entry of the block being connected. |
block_to_connect |
The block to connect to the tip. |
connected_blocks |
Collects the blocks connected during activation. |
disconnectpool |
Collects transactions from any disconnected blocks for reprocessing. |
Created with MrDocs