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

Apply the effects of a block disconnection on the UTXO set and update the mempool&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba84588, 0x7f2e1ba84600), requires&lowbar;capability(0x7f2e145641d8, 0x7f2e14564250), requires&lowbar;capability(0x7f2e373bd388, 0x7f2e373bd400), requires&lowbar;capability(0x7f2e36e33fd8, 0x7f2e36e34050)&rsqb;&rsqb;
bool
DisconnectTip(
    xref:BlockValidationState.adoc[BlockValidationState]& state,
    xref:DisconnectedBlockTransactions.adoc[DisconnectedBlockTransactions]* disconnectpool);
----

== Return Value

true if the tip was disconnected successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *state*
| Validation state updated with the reason for any failure&period;
| *disconnectpool*
| Collects the transactions from the disconnected block for later reprocessing&period;
|===


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