Process incoming block headers.
Synopsis
Declared in <validation.h>
[[locks_excluded(0x7f2e1bc17988), locks_excluded(0x7f2e146b5cd8), locks_excluded(0x7f2e298fb0a8), locks_excluded(0x7f2e360b8808)]]
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