Process incoming block headers.
Synopsis
Declared in <validation.h>
[[locks_excluded(0x7ff37ba95478), locks_excluded(0x7ff375ddbe08), locks_excluded(0x7ff37e1a56d8), locks_excluded(0x7ff375a97548)]]
bool
ProcessNewBlockHeaders(
std::span<CBlockHeader const> headers,
bool min_pow_checked,
BlockValidationState& state,
CBlockIndex const** ppindex = nullptr);
Description
May not be called in a validationinterface callback.
Return Value
false if AcceptBlockHeader fails on any of the headers, true otherwise (including if headers were already known)
Parameters
Name |
Description |
headers [in] |
The block headers themselves |
min_pow_checked [in] |
True if proof‐of‐work anti‐DoS checks have been done by caller for headers chain |
state [out] |
This may be set to an Error state if any error occurred processing them |
ppindex [out] |
If set, the pointer will be set to point to the last new block index object for the given headers |
Created with MrDocs