[#ChainstateManager-ProcessNewBlockHeaders] = xref:ChainstateManager.adoc[ChainstateManager]::ProcessNewBlockHeaders :relfileprefix: ../ :mrdocs: Process incoming block headers. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[locks_excluded(0x7f2e1bc17988), locks_excluded(0x7f2e146b5cd8), locks_excluded(0x7f2e298fb0a8), locks_excluded(0x7f2e360b8808)]] bool ProcessNewBlockHeaders( std::span<CBlockHeader const> headers, bool min_pow_checked, xref:BlockValidationState.adoc[BlockValidationState]& state, xref:CBlockIndex.adoc[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 [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#