[#CValidationInterface-BlockDisconnected] = xref:CValidationInterface.adoc[CValidationInterface]::BlockDisconnected :relfileprefix: ../ :mrdocs: Notifies listeners of a block being disconnected Provides the block that was disconnected. == Synopsis Declared in `<validationinterface.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void BlockDisconnected( std::shared_ptr<CBlock const> const& block, xref:CBlockIndex.adoc[CBlockIndex] const* pindex); ---- == Description Called on a background thread. Only called for the active chainstate, since background chainstates should never disconnect blocks. == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block that was disconnected. | *pindex* | Block index entry for the disconnected block. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#