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

`BlockDisconnected` overloads

== Synopses

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

Notifies listeners of a block being disconnected Provides the block that was disconnected&period;


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

[.small]#xref:CValidationInterface/BlockDisconnected.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:CZMQNotificationInterface/BlockDisconnected-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block that was disconnected&period;
| *pindex*
| Block index entry for the disconnected block&period;
| *pblock*
| The disconnected block&period;
| *pindexDisconnected*
| The block index of the disconnected block&period;
|===


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