[#CValidationInterface-BlockConnected]
= xref:CValidationInterface.adoc[CValidationInterface]::BlockConnected
:relfileprefix: ../
:mrdocs:

Notifies listeners of a block being connected&period;

== Synopsis

Declared in `&lt;validationinterface&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
BlockConnected(
    xref:kernel/ChainstateRole.adoc[kernel::ChainstateRole] const& role,
    std::shared&lowbar;ptr&lt;CBlock const&gt; const& block,
    xref:CBlockIndex.adoc[CBlockIndex] const* pindex);
----

== Description

Called on a background thread&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *role*
| Which chainstate (active or background) connected the block&period;
| *block*
| The block that was connected&period;
| *pindex*
| Block index entry for the connected block&period;
|===


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