erigon-seg-retire

Automate Erigon segment retirement workflows to prepare publishable snapshots.

3.6k|1.5k|Updated May 27, 2019
One-click install
npx skills add https://github.com/erigontech/erigon --skill erigon-seg-retire
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erigon-seg-retire
Source: https://github.com/erigontech/erigon/tree/main/.claude/skills/erigon-seg-retire
Command: npx skills add https://github.com/erigontech/erigon --skill erigon-seg-retire

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Erigon segment retire command automates the preparation of publishable snapshots by consolidating build, merge, and cleanup tasks into a reliable workflow.

Core Features & Use Cases

  • Snapshot preparation: Build missing indices, retire blocks into snapshot files, and remove overlaps to ensure clean publication artifacts.
  • Workflow alignment: Fits into the Publishable v2 snapshot release flow by sequencing segmentation, indexing, and packaging steps.
  • Use Case: Before releasing a data snapshot, shut down Erigon, run seg retire, then proceed with indexing and publishing steps to produce verifiable artifacts.

Quick Start

Run the retire process after stopping Erigon and ensuring the datadir exists: ./build/bin/erigon seg retire --datadir=/path/to/erigon

Frequently Asked Questions about erigon-seg-retire

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prepare Erigon snapshots for publication?

Erigon snapshot preparation involves running the seg retire command after stopping your datadir. This automates building indices, retiring blocks into snapshot files, and removing overlaps to create clean, publishable artifacts ready for release.

What does the Erigon seg retire command do?

The seg retire command automates the segment retire workflow by consolidating build, merge, prune, and cleanup tasks across block and state snapshot files into a single reliable process for preparing publishable snapshots.

When should I run Erigon seg retire in my snapshot release workflow?

Run seg retire after shutting down Erigon and before indexing and publishing steps. It fits into the Publishable v2 snapshot release flow by sequencing segmentation, indexing, and packaging to produce verifiable artifacts.

What prerequisites do I need to run seg retire?

You need an available Erigon binary, a stopped datadir with snapshot files, and the seg retire command available. The datadir must not be actively running to avoid conflicts during the retire process.

Can I automate the entire Erigon snapshot retirement process?

Yes. The seg retire command fully automates the snapshot retirement workflow, handling build, merge, prune, and cleanup steps across all block and state snapshot files in a single execution.

What happens if snapshot files overlap during retirement?

The seg retire process detects and removes overlaps between snapshot files as part of its cleanup phase, ensuring clean publication artifacts without duplicate or conflicting data segments.