If we have validated a snapshot chain during this runtime, copy its chainstate directory over to the main chainstate location, completing validation of the snapshot.
Declared in <validation.h>
[[requires_capability(0x7f9513c483d8), requires_capability(0x7f9502de9b78), requires_capability(0x7f950b21c348), requires_capability(0x7f9514bf6338)]]
bool
ValidatedSnapshotCleanup(
Chainstate& validated_cs,
Chainstate& unvalidated_cs);
If the cleanup succeeds, the caller will need to ensure chainstates are reinitialized, since ResetChainstates() will be called before leveldb directories are moved or deleted.
true if the cleanup completed successfully.
| Name | Description |
|---|---|
| validated_cs | The validated chainstate whose directory is moved into place. |
| unvalidated_cs | The snapshot chainstate that is being superseded. |