erigon-pulse/cmd/downloader/readme.md
2021-12-25 15:32:51 +07:00

1.2 KiB

Downloader

Is a service which does download and seed historical data.

Historical data - is immutable, files have .seg extension.

Architecture

Erigon does:

Downloader does:

  • create .torrent files in <your_datadir>/snapshot directory (can be used by any torrent client)
  • download everything. Currently rely on https://github.com/ngosang/trackerslist see ./trackers/embed.go
  • automatically seeding
  • operator can manually copy .seg files to <your_datadir>/snapshot directory, then Downloader will not download files ( but will verify it's hash).

How to

Start

downloader --datadir=<your_datadir> --downloader.api.addr=127.0.0.1:9093
erigon --downloader.api.addr=127.0.0.1:9093 --experimental.snapshot

Limit download/upload speed

downloader --download.limit=10mb --upload.limit=10mb

Add hashes to https://github.com/ledgerwatch/erigon-snapshot

downloader print_torrent_files --datadir=<your_datadir>