[#Chainstate-DisconnectBlock] = xref:Chainstate.adoc[Chainstate]::DisconnectBlock :relfileprefix: ../ :mrdocs: Undo the effects of a block on a given coins view. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1ba84438), requires_capability(0x7f2e14564088), requires_capability(0x7f2e373bd238), requires_capability(0x7f2e36e33e88)]] 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. == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block to disconnect. | *pindex* | Block index entry corresponding to the block. | *view* | The coins view to apply the disconnection to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#