Apply the effects of a block to a given coins view, checking its validity.
Synopsis
Declared in <validation.h>
[[requires_capability(0x7f9513ab4878), requires_capability(0x7f9502c978e8), requires_capability(0x7f9525449618), requires_capability(0x7f95173ff8f8)]]
bool
ConnectBlock(
CBlock const& block,
BlockValidationState& state,
CBlockIndex* pindex,
CCoinsViewCache& view,
bool fJustCheck = false);
Return Value
true if the block was connected successfully.
Parameters
Name |
Description |
block |
The block to connect. |
state |
Validation state updated with the reason for any failure. |
pindex |
Block index entry corresponding to the block. |
view |
The coins view to apply the block to. |
fJustCheck |
When true, validate the block without committing the changes. |
Created with MrDocs