-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[formal-snapshots] Introduce strict verification (#16918)
## Description `--verify strict` adds an additional level of verification by verifying the live object set of the db after restore, rather than simply the contents of the snapshot itself. These two are not equivalent in cases where the restore process inadvertently adds objects to the live object set from a source other than the downloaded snapshot itself. One such example could be inserting genesis objects. ## Test Plan ``` target/release/sui-tool download-formal-snapshot --network mainnet --latest --path /opt/sui/db/authorities_db --genesis /opt/sui/mainnet/config/genesis.blob --no-sign-request --verify strict Beginning formal snapshot restore to end of epoch 419, network: Mainnet with verification mode Strict [00:25:02] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 35942088/35942088(Checkpoint summary sync is complete) [00:07:42] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 453 out of 453 .ref files done (ref files download complete) [00:00:42] ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 453 out of 453 ref files checksummed (Checksumming complete) [00:02:17] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 453 out of 453 ref files accumulated from snapshot (Accumulation complete) [00:30:33] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 453 out of 453 .obj files done (Objects download complete) [00:40:30] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 35942088/35942088(Checkpoint summary verification is complete) [00:40:02] ██████████████████████████████████████████████████████████████████████████████████████░ 257689825 out of 257775627 ref files accumulated from db (live obj accumulations per sec: 107250.80399722935)DB live object state verification completed successfully! ``` --- If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
1 parent
101f1ff
commit 3f67d9d
Showing
4 changed files
with
138 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters