Downloader

Seeding/downloading historical data

The Downloader is a service responsible for seeding and downloading historical data using the BitTorrent protocol. Data is stored in the form of immutable .seg files, known as snapshots. The Ethereum core instructs the Downloader to download specific files, identified by their unique info hashes, which include both block headers and block bodies. The Downloader then communicates with the BitTorrent network to retrieve the necessary files, as specified by the Ethereum core.

Warning: While all Erigon components are separable and can be run on different machines, the Downloader must run on the same machine as Erigon to be able to share downloaded and seeded files.

For a comprehensive understanding of the Downloader's functionality, configuration, and usage, please refer to ./cmd/downloader/README.mdarrow-up-right with the following key topics:

  1. Snapshots overview: An introduction to snapshots, their benefits, and how they are created and used in Erigon.

  2. Starting Erigon with snapshots support: Instructions on how to start Erigon with snapshots support, either by default or as a separate process.

  3. Creating new networks or bootnodes: A guide on how to create new networks or bootnodes, including creating new snapshots and starting the Downloader.

  4. Architecture: An overview of the Downloader's architecture, including how it works with Erigon and the different ways .torrent files can be created.

  5. Utilities: A list of available utilities, including torrent_cat, torrent_magnet, and torrent_clean.

  6. Remote manifest verify: Instructions on how to verify that remote webseeds have available manifests and all manifested files are available.

  7. Faster rsync: Tips on how to use rsync for faster file transfer.

  8. Release details: Information on how to start automatic commits of new hashes to the master branch.

  9. Creating a seedbox: A guide on how to create a seedbox to support a new network or type of snapshots.

Some of the key sections in the documentation include:

  • How to create new snapshots: Instructions on how to create new snapshots, including using the seg command and creating .torrent files.

  • How to start the Downloader: Instructions on how to start the Downloader, either as a separate process or as part of Erigon.

  • How to verify .seg files: Instructions on how to verify that .seg files have the same checksum as the current .torrent files.

By referring to the embedded documentation file, you can gain a deeper understanding of the Downloader's capabilities and how to effectively utilize it in your Erigon setup.

Command line options

To display available options for downloader digit:

The --help flag listing is reproduced below for your convenience.

Last updated

Was this helpful?