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]]
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.