ChainstateManager::DeleteChainstate

Remove the chainstate and all on-disk artifacts. Used when reindex{-chainstate} is called during snapshot use.

Synopsis

Declared in <validation.h>

[[nodiscard, requires_capability(0x7fd753e2f5b8), requires_capability(0x7fd74dcf0c68), requires_capability(0x7fd74a14e868), requires_capability(0x7fd75e70faf8)]]
bool
DeleteChainstate(Chainstate& chainstate);

Return Value

true if the chainstate and its artifacts were deleted successfully.

NOTE

The return value should not be discarded.

Parameters

NameDescription
chainstateThe chainstate to remove and delete from disk.