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(0x7f9513c48338), requires_capability(0x7f9502de9ad8), requires_capability(0x7f950b21c2a8), requires_capability(0x7f9514bf6298)]]
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
Name |
Description |
chainstate |
The chainstate to remove and delete from disk. |
Created with MrDocs