What problem does it solve?
Verifying that Erigon snapshot and segment files are valid and consistent requires running the correct CLI checks with the right flags, which is error-prone when done manually, especially during snapshot publishing or after suspected data corruption.
Core Features & Use Cases
- Datadir Integrity Verification: Executes
erigon seg integrity against a datadir to validate snapshot and segment files.
- Selective Check Execution: Runs or skips specific named checks via
--check and --skip-check, discovered dynamically through --help.
- Torrent Piece-Hash Verification: Optionally enables a torrent piece-hash pre-pass with
--file-integrity-cache for deeper file validation.
- Use Case: During the snapshot publishing process, run all default integrity checks against a mainnet datadir with
--failFast=false to collect every warning before release.
Quick Start
Ask the assistant to run integrity checks on your Erigon datadir at a given path, optionally specifying which checks to run or skip.