[#CValidationInterface-BlockConnected] = xref:CValidationInterface.adoc[CValidationInterface]::BlockConnected :relfileprefix: ../ :mrdocs: Notifies listeners of a block being connected. == Synopsis Declared in `<validationinterface.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& block, xref:CBlockIndex.adoc[CBlockIndex] const* pindex); ---- == Description Called on a background thread. == 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#