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

In case of an invalid snapshot, rename the coins leveldb directory so that it can be examined for issue diagnosis&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, requires&lowbar;capability(0x7f2e1ba85d68), requires&lowbar;capability(0x7f2e145659b8), requires&lowbar;capability(0x7f2e373beb68), requires&lowbar;capability(0x7f2e36e357b8)&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;void&gt;]
InvalidateCoinsDBOnDisk();
----

== Return Value

A successful result, or an error if the directory could not be renamed&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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