[#CZMQNotificationInterface-BlockConnected-0d] = xref:CZMQNotificationInterface.adoc[CZMQNotificationInterface]::BlockConnected :relfileprefix: ../ :mrdocs: Handle a block being connected to the active chain. == Synopsis Declared in `<zmq/zmqnotificationinterface.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void BlockConnected( xref:kernel/ChainstateRole.adoc[kernel::ChainstateRole] const& role, std::shared_ptr<CBlock const> 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. | *pblock* | The connected block. | *pindexConnected* | The block index of the connected block. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#