[#Chainstate-DisconnectBlock]
= xref:Chainstate.adoc[Chainstate]::DisconnectBlock
:relfileprefix: ../
:mrdocs:

Undo the effects of a block on a given coins view&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513ab47c8), requires&lowbar;capability(0x7f9502c97838), requires&lowbar;capability(0x7f9525449568), requires&lowbar;capability(0x7f95173ff848)&rsqb;&rsqb;
xref:DisconnectResult.adoc[DisconnectResult]
DisconnectBlock(
    xref:CBlock.adoc[CBlock] const& block,
    xref:CBlockIndex.adoc[CBlockIndex] const* pindex,
    xref:CCoinsViewCache.adoc[CCoinsViewCache]& view);
----

== Return Value

The result of disconnecting the block from the view&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block to disconnect&period;
| *pindex*
| Block index entry corresponding to the block&period;
| *view*
| The coins view to apply the disconnection to&period;
|===


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