[#CZMQNotificationInterface-BlockDisconnected-02]
= xref:CZMQNotificationInterface.adoc[CZMQNotificationInterface]::BlockDisconnected
:relfileprefix: ../
:mrdocs:

Handle a block being disconnected from the active chain&period;

== Synopsis

Declared in `&lt;zmq&sol;zmqnotificationinterface&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
BlockDisconnected(
    std::shared&lowbar;ptr&lt;CBlock const&gt; const& pblock,
    xref:CBlockIndex.adoc[CBlockIndex] const* pindexDisconnected) override;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pblock*
| The disconnected block&period;
| *pindexDisconnected*
| The block index of the disconnected block&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
