[#btck-ChainMan-ProcessBlock]
= xref:btck.adoc[btck]::xref:btck/ChainMan.adoc[ChainMan]::ProcessBlock
:relfileprefix: ../../
:mrdocs:

Validates and connects a block to the chain&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ProcessBlock(
    xref:btck/Block.adoc[Block] const& block,
    bool* new&lowbar;block);
----

== Return Value

True on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block to process&period;
| *new&lowbar;block*
| Optional out&hyphen;parameter set to true if the block was new&period;
|===


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