[#BaseIndex-BlockConnected] = xref:BaseIndex.adoc[BaseIndex]::BlockConnected :relfileprefix: ../ :mrdocs: Handle a newly connected block by appending it to the index. == Synopsis Declared in `<index/base.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) override; ---- == Parameters [cols="1,4"] |=== | Name| Description | *role* | Role of the chainstate that 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]#