[#CZMQNotificationInterface-BlockConnected-0d]
= xref:CZMQNotificationInterface.adoc[CZMQNotificationInterface]::BlockConnected
:relfileprefix: ../
:mrdocs:

Handle a block being connected to the active chain&period;

== Synopsis

Declared in `&lt;zmq&sol;zmqnotificationinterface&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& pblock,
    xref:CBlockIndex.adoc[CBlockIndex] const* pindexConnected) override;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *role*
| The role of the chainstate the block was connected to&period;
| *pblock*
| The connected block&period;
| *pindexConnected*
| The block index of the connected block&period;
|===


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