[#btck_chainstate_manager_process_block_header]
= btck&lowbar;chainstate&lowbar;manager&lowbar;process&lowbar;block&lowbar;header
:mrdocs:

Processes and validates the provided btck&lowbar;BlockHeader&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_BlockValidationState-0e.adoc[btck&lowbar;BlockValidationState]*
btck&lowbar;chainstate&lowbar;manager&lowbar;process&lowbar;block&lowbar;header(
    xref:btck_ChainstateManager-0e.adoc[btck&lowbar;ChainstateManager]* chainstate&lowbar;manager,
    xref:btck_BlockHeader-00.adoc[btck&lowbar;BlockHeader] const* header);
----

== Return Value

The btck&lowbar;BlockValidationState containing validation result, or null on error&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate&lowbar;manager* [in]
| Non&hyphen;null&period;
| *header* [in]
| Non&hyphen;null btck&lowbar;BlockHeader to be validated&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
