Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support torrent for bsc testnet #139

Merged
merged 2 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,6 @@ replace (
github.com/cometbft/cometbft => github.com/bnb-chain/greenfield-tendermint v0.0.0-20230417032003-4cda1f296fb2
github.com/grpc-ecosystem/grpc-gateway/v2 => github.com/prysmaticlabs/grpc-gateway/v2 v2.3.1-0.20210702154020-550e1cd83ec1
github.com/ledgerwatch/erigon-lib => github.com/node-real/bsc-erigon-lib v1.0.2-0.20230612073802-74354c0b46c4
github.com/ledgerwatch/erigon-snapshot => github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20230607015520-e2aea6f08f5a
github.com/ledgerwatch/erigon-snapshot => github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20230629111255-a1366bf5ee0e
github.com/tendermint/tendermint => github.com/bnb-chain/tendermint v0.31.15
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,8 @@ github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a
github.com/nishanths/predeclared v0.0.0-20200524104333-86fad755b4d3/go.mod h1:nt3d53pc1VYcphSCIaYAJtnPYnr3Zyn8fMq2wvPGPso=
github.com/node-real/bsc-erigon-lib v1.0.2-0.20230612073802-74354c0b46c4 h1:7ippsj8q6BHTkV8yZd4jP/eOXs0KTZFrR1G6tOXEVHk=
github.com/node-real/bsc-erigon-lib v1.0.2-0.20230612073802-74354c0b46c4/go.mod h1:fis+CS9DEtVJ6YV/P+CC7Dx27XtiaTf8tsEDy89wcZU=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20230607015520-e2aea6f08f5a h1:ipybQFi6l33TLmDH90c6Q+CxiwnliIeqOX/GrbDf9WE=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20230607015520-e2aea6f08f5a/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20230629111255-a1366bf5ee0e h1:jHsaN6LD3hFiInDiBLQyGeV28zUShmXOyaloV/5Wv6g=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20230629111255-a1366bf5ee0e/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/nxadm/tail v1.4.9-0.20211216163028-4472660a31a6 h1:iZ5rEHU561k2tdi/atkIsrP5/3AX3BjyhYtC96nJ260=
Expand Down
4 changes: 4 additions & 0 deletions turbo/snapshotsync/snapcfg/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var (
BorMainnet = fromToml(snapshothashes.BorMainnet)
Gnosis = fromToml(snapshothashes.Gnosis)
Chiado = fromToml(snapshothashes.Chiado)
Chapel = fromToml(snapshothashes.Chapel)

MainnetHistory = fromToml(snapshothashes.MainnetHistory)
SepoliaHistory = fromToml(snapshothashes.SepoliaHistory)
Expand All @@ -30,6 +31,7 @@ var (
BorMainnetHistory = fromToml(snapshothashes.BorMainnetHistory)
GnosisHistory = fromToml(snapshothashes.GnosisHistory)
ChiadoHistory = fromToml(snapshothashes.ChiadoHistory)
ChapelHistory = fromToml(snapshothashes.ChapelHistory)
)

type PreverifiedItem struct {
Expand Down Expand Up @@ -64,6 +66,7 @@ var (
BorMainnetChainSnapshotCfg = newCfg(BorMainnet, BorMainnetHistory)
GnosisChainSnapshotCfg = newCfg(Gnosis, GnosisHistory)
ChiadoChainSnapshotCfg = newCfg(Chiado, ChiadoHistory)
ChapelChainSnapshotCfg = newCfg(Chapel, ChapelHistory)
)

func newCfg(preverified, preverifiedHistory Preverified) *Cfg {
Expand Down Expand Up @@ -111,6 +114,7 @@ var KnownCfgs = map[string]*Cfg{
networkname.SepoliaChainName: SepoliaChainSnapshotCfg,
networkname.GoerliChainName: GoerliChainSnapshotCfg,
networkname.BSCChainName: BscChainSnapshotCfg,
networkname.ChapelChainName: ChapelChainSnapshotCfg,
networkname.MumbaiChainName: MumbaiChainSnapshotCfg,
networkname.BorMainnetChainName: BorMainnetChainSnapshotCfg,
networkname.GnosisChainName: GnosisChainSnapshotCfg,
Expand Down