[#CZMQNotificationInterface-BlockConnected-05] = xref:CZMQNotificationInterface.adoc[CZMQNotificationInterface]::BlockConnected :relfileprefix: ../ :mrdocs: `BlockConnected` overloads == Synopses Declared in `<zmq/zmqnotificationinterface.h>` Notifies listeners of a block being connected. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void xref:CValidationInterface/BlockConnected.adoc[BlockConnected]( xref:kernel/ChainstateRole.adoc[kernel::ChainstateRole] const& role, std::shared_ptr<CBlock const> const& block, xref:CBlockIndex.adoc[CBlockIndex] const* pindex); ---- [.small]#xref:CValidationInterface/BlockConnected.adoc[_» more..._]# Handle a block being connected to the active chain. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void xref:CZMQNotificationInterface/BlockConnected-0d.adoc[BlockConnected]( xref:kernel/ChainstateRole.adoc[kernel::ChainstateRole] const& role, std::shared_ptr<CBlock const> const& pblock, xref:CBlockIndex.adoc[CBlockIndex] const* pindexConnected) override; ---- [.small]#xref:CZMQNotificationInterface/BlockConnected-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *role* | Which chainstate (active or background) connected the block. | *block* | The block that was connected. | *pindex* | Block index entry for the connected block. | *pblock* | The connected block. | *pindexConnected* | The block index of the connected block. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#