Process incoming block headers.
Declared in <validation.h>
[[locks_excluded(0x7f9513c47ce8), locks_excluded(0x7f9502de9488), locks_excluded(0x7f950b21bc58), locks_excluded(0x7f9514bf5c48)]]
bool
ProcessNewBlockHeaders(
std::span<CBlockHeader const> headers,
bool min_pow_checked,
BlockValidationState& state,
CBlockIndex const** ppindex = nullptr);
May not be called in a validationinterface callback.
false if AcceptBlockHeader fails on any of the headers, true otherwise (including if headers were already known)
| 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 |