Skip to content

Commit

Permalink
sepolia block snaspshots (#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jan 25, 2023
1 parent c28c96b commit bb2bec2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/ethconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ type Sync struct {

// Chains where snapshots are enabled by default
var ChainsWithSnapshots = map[string]struct{}{
networkname.MainnetChainName: {},
networkname.MainnetChainName: {},
//networkname.SepoliaChainName: {},
networkname.BSCChainName: {},
networkname.GoerliChainName: {},
networkname.MumbaiChainName: {},
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 @@ -14,13 +14,15 @@ import (

var (
Mainnet = fromToml(snapshothashes.Mainnet)
Sepolia = fromToml(snapshothashes.Sepolia)
Goerli = fromToml(snapshothashes.Goerli)
Bsc = fromToml(snapshothashes.Bsc)
Mumbai = fromToml(snapshothashes.Mumbai)
BorMainnet = fromToml(snapshothashes.BorMainnet)
Gnosis = fromToml(snapshothashes.Gnosis)

MainnetHistory = fromToml(snapshothashes.MainnetHistory)
SepoliaHistory = fromToml(snapshothashes.SepoliaHistory)
GoerliHistory = fromToml(snapshothashes.GoerliHistory)
BscHistory = fromToml(snapshothashes.BscHistory)
MumbaiHistory = fromToml(snapshothashes.MumbaiHistory)
Expand Down Expand Up @@ -53,6 +55,7 @@ func doSort(in preverified) Preverified {

var (
MainnetChainSnapshotCfg = newCfg(Mainnet, MainnetHistory)
SepoliaChainSnapshotCfg = newCfg(Sepolia, SepoliaHistory)
GoerliChainSnapshotCfg = newCfg(Goerli, GoerliHistory)
BscChainSnapshotCfg = newCfg(Bsc, BscHistory)
MumbaiChainSnapshotCfg = newCfg(Mumbai, MumbaiHistory)
Expand Down Expand Up @@ -102,6 +105,7 @@ type Cfg struct {

var KnownCfgs = map[string]*Cfg{
networkname.MainnetChainName: MainnetChainSnapshotCfg,
networkname.SepoliaChainName: SepoliaChainSnapshotCfg,
networkname.GoerliChainName: GoerliChainSnapshotCfg,
networkname.BSCChainName: BscChainSnapshotCfg,
networkname.MumbaiChainName: MumbaiChainSnapshotCfg,
Expand Down

0 comments on commit bb2bec2

Please sign in to comment.