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(0x7fbc8fcf9bb8), requires_capability(0x7fbc96d92378), requires_capability(0x7fbcaf727de8), requires_capability(0x7fbc9e23f4c8)]]
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. |