From bb2bec243938c4a9bd5f1bf3c199fdb7ab870ea0 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 25 Jan 2023 09:55:26 +0700 Subject: [PATCH] sepolia block snaspshots (#6626) --- eth/ethconfig/config.go | 3 ++- turbo/snapshotsync/snapcfg/util.go | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 85d8e2590..a88234ecb 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -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: {}, diff --git a/turbo/snapshotsync/snapcfg/util.go b/turbo/snapshotsync/snapcfg/util.go index c885d3884..95aeeb211 100644 --- a/turbo/snapshotsync/snapcfg/util.go +++ b/turbo/snapshotsync/snapcfg/util.go @@ -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,