Run the Erigon segment retire command to build, merge, and clean snapshot files. Use this for snapshot publication readiness preparation.
The erigon seg retire command prepares snapshot files for publication by performing build, merge, and cleanup operations on segment files.
/erigon-build first if the binary doesn't exist./build/bin/erigon seg retire --datadir=<path>
Replace <path> with the actual path to your Erigon data directory.
The retire command performs these operations in sequence:
This command is part of the "Publishable v2" snapshot release flow:
seg retire (this command)seg clearIndexingseg indexpublishable command# Build the binary first (if needed)
make erigon
# Ensure Erigon is stopped, then run seg retire
./build/bin/erigon seg retire --datadir=/data/erigon