sepolia block snaspshots (#6626)

This commit is contained in:
Alex Sharov 2023-01-25 09:55:26 +07:00 committed by GitHub
parent c28c96bea7
commit bb2bec2439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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: {},

View File

@ -14,6 +14,7 @@ import (
var (
Mainnet = fromToml(snapshothashes.Mainnet)
Sepolia = fromToml(snapshothashes.Sepolia)
Goerli = fromToml(snapshothashes.Goerli)
Bsc = fromToml(snapshothashes.Bsc)
Mumbai = fromToml(snapshothashes.Mumbai)
@ -21,6 +22,7 @@ var (
Gnosis = fromToml(snapshothashes.Gnosis)
MainnetHistory = fromToml(snapshothashes.MainnetHistory)
SepoliaHistory = fromToml(snapshothashes.SepoliaHistory)
GoerliHistory = fromToml(snapshothashes.GoerliHistory)
BscHistory = fromToml(snapshothashes.BscHistory)
MumbaiHistory = fromToml(snapshothashes.MumbaiHistory)
@ -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)
@ -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,