Chainstate::InvalidateCoinsDBOnDisk

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

Synopsis

Declared in <validation.h>

[[nodiscard, requires_capability(0x7f9513ab60f8), requires_capability(0x7f9502c99168), requires_capability(0x7f952544ae98), requires_capability(0x7f9517401178)]]
util::Result<void>
InvalidateCoinsDBOnDisk();

Return Value

A successful result, or an error if the directory could not be renamed.

NOTE

The return value should not be discarded.