Skip to content

Commit

Permalink
Merge pull request #14 from blxdyx/erigon_b86d102
Browse files Browse the repository at this point in the history
Upstream Sync
  • Loading branch information
setunapo authored Mar 11, 2024
2 parents 7a97dd2 + dcac696 commit c85ea63
Show file tree
Hide file tree
Showing 28 changed files with 967 additions and 300 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on:
push:
branches:
- main
- e35
pull_request:
branches:
- '**'

jobs:
tests:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- run: go install github.com/pelletier/go-toml/v2/cmd/tomll@latest

- run: tomll amoy.toml
- run: tomll bor-mainnet.toml
- run: tomll chiado.toml
- run: tomll gnosis.toml
- run: tomll goerli.toml
- run: tomll mainnet.toml
- run: tomll mumbai.toml
- run: tomll sepolia.toml

- run: tomll webseed/amoy.toml
- run: tomll webseed/bor-mainnet.toml
- run: tomll webseed/chiado.toml
- run: tomll webseed/gnosis.toml
- run: tomll webseed/goerli.toml
- run: tomll webseed/mainnet.toml
- run: tomll webseed/mumbai.toml
- run: tomll webseed/sepolia.toml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@

erigon_snapsnots_*.toml
trackers_best.txt
go.work*
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
## Erigon Snapshot

This repo contains the snapshot data used when syncing Erigon with snapshots enabled.
This repo contains the snapshot data used when syncing Erigon

## Contribute new files

`./build/bin/downloader torrent_hashes --datadir=<your> --chain=<your>`

Add output as a PR to this repository. Update dependency in erigon's go.mod

## Force generate new files

If your node didn't produce files yet, but db has data (node synced):

```
# stop erigon
./build/bin/erigon retire --datadir=<your> --chain=<your>
./build/bin/downloader torrent_create --datadir=<your> --chain=<your>
./build/bin/downloader torrent_hashes --datadir=<your> --chain=<your>
```

## Generating Magnet Links

This repo contains a shell script that can be used to generate [Magnet Links](https://en.wikipedia.org/wiki/Magnet_URI_scheme)
This repo contains a shell script that can be used to
generate [Magnet Links](https://en.wikipedia.org/wiki/Magnet_URI_scheme)

By default it will download and generate magnet links for Ethereum Mainnet, you can override this with the `--network` argument.
By default it will download and generate magnet links for Ethereum Mainnet, you can override this with the `--network`
argument.

Valid networks are what you see in this repo.

Expand Down
File renamed without changes.
285 changes: 285 additions & 0 deletions bor-mainnet.toml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ var Mainnet []byte
//go:embed goerli.toml
var Goerli []byte

//go:embed ropsten.toml
var Ropsten []byte

//go:embed sepolia.toml
var Sepolia []byte

//go:embed mumbai.toml
var Mumbai []byte

//go:embed amoy.toml
var Amoy []byte

//go:embed bor-mainnet.toml
var BorMainnet []byte

Expand Down
21 changes: 21 additions & 0 deletions gnosis.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,24 @@
'v1-026000-026500-bodies.seg' = '33897f1050c38b4f2a4c71be0d8ca524676a56b2'
'v1-026000-026500-headers.seg' = 'f7f6381281f9a05a796769133cdfe091736cd9a7'
'v1-026000-026500-transactions.seg' = 'deb3cfd326b433548497c9e4bb56484851bffe40'
'v1-026500-027000-bodies.seg' = '1919b60330c60bda7d9da9a56a9d7e359fdc2ffb'
'v1-026500-027000-headers.seg' = 'ba17d68b85babba2c3a9bc0a029214c853e700b6'
'v1-026500-027000-transactions.seg' = '352af216136e85e619b52eb87bd1c911cac37fd8'
'v1-027000-027500-bodies.seg' = '4a9fc1761971683b3976e0d2a8d18a9fa0ab6575'
'v1-027000-027500-headers.seg' = 'e0173710e53a6d334c22a16d20f34c74f98e00c6'
'v1-027000-027500-transactions.seg' = '6e5c55a142ccce677a4bfbeb419d3324f27d2ccc'
'v1-027500-028000-bodies.seg' = 'c4a34a66e3218fee90f866b7208f577d2fe893d5'
'v1-027500-028000-headers.seg' = '465a6064fc331601bb80ee46f90a718e15909513'
'v1-027500-028000-transactions.seg' = '64331598e0c26572f6f8ad6e2936c875714e9b64'
'v1-028000-028500-bodies.seg' = 'd555de5017100d3e501d853b2ddedb655a8a9b27'
'v1-028000-028500-headers.seg' = '1c7e0b19ef156f41cf22b59af85725e8562cc5a0'
'v1-028000-028500-transactions.seg' = '73479a57b6af2fb9b8ae6904e5e0c5555a2f2679'
'v1-028500-029000-bodies.seg' = '527cea5368ee8b929621f4d9ab6eb141f5b01e97'
'v1-028500-029000-headers.seg' = 'e25b90e21d4291322bae901ec268e3f4395833f8'
'v1-028500-029000-transactions.seg' = '3270190dbe6141ad7c7885dce2d7c3c8f4c8bddd'
'v1-029000-029500-bodies.seg' = '6ad89627f2036ed9f646fb5f8985555e08962d4d'
'v1-029000-029500-headers.seg' = '7b9101baf355640abcb3d56a7f81fb1390dfc0be'
'v1-029000-029500-transactions.seg' = '25155699b49987f43f8cce04c24750bb1994f935'
'v1-029500-030000-bodies.seg' = 'c0a5208da829af65190667354f2ae7af0bf3a21b'
'v1-029500-030000-headers.seg' = '2dd53a5a62396f4437068ba18ce3b0c2bf8a8e46'
'v1-029500-030000-transactions.seg' = 'a03f74bf573701cc05f61db0e10d00dc5116eaa6'
1 change: 0 additions & 1 deletion history/chiado.toml

This file was deleted.

1 change: 0 additions & 1 deletion history/gnosis.toml

This file was deleted.

9 changes: 0 additions & 9 deletions history/goerli.toml

This file was deleted.

3 changes: 0 additions & 3 deletions history/hack.go

This file was deleted.

150 changes: 0 additions & 150 deletions history/mainnet.toml

This file was deleted.

Empty file removed history/mumbai.toml
Empty file.
Empty file removed history/ropsten.toml
Empty file.
Loading

0 comments on commit c85ea63

Please sign in to comment.