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(0x7fb95fbcba18), requires_capability(0x7fb96adf49e8), requires_capability(0x7fb96eb27b68), requires_capability(0x7fb9871692f8)]]
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. |