mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
snapshots: bsc (#3382)
This commit is contained in:
parent
7b77585195
commit
94930c5fe0
@ -19,6 +19,10 @@ var Mainnet = fromToml(mainnet)
|
||||
var goerli []byte
|
||||
var Goerli = fromToml(goerli)
|
||||
|
||||
//go:embed erigon-snapshots/bsc.toml
|
||||
var bsc []byte
|
||||
var Bsc = fromToml(bsc)
|
||||
|
||||
type Preverified map[string]string
|
||||
|
||||
func fromToml(in []byte) (out Preverified) {
|
||||
@ -31,6 +35,7 @@ func fromToml(in []byte) (out Preverified) {
|
||||
var (
|
||||
MainnetChainSnapshotConfig = newConfig(Mainnet)
|
||||
GoerliChainSnapshotConfig = newConfig(Goerli)
|
||||
BscChainSnapshotConfig = newConfig(Bsc)
|
||||
)
|
||||
|
||||
func newConfig(preverified Preverified) *Config {
|
||||
@ -81,6 +86,8 @@ func KnownConfig(networkName string) *Config {
|
||||
return MainnetChainSnapshotConfig
|
||||
case networkname.GoerliChainName:
|
||||
return GoerliChainSnapshotConfig
|
||||
case networkname.BSCChainName:
|
||||
return BscChainSnapshotConfig
|
||||
default:
|
||||
panic(fmt.Sprintf("snapshot sync not supported yet for network: %s", networkName))
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit d0318c0c08649343c4ba9675fff3d4ec653b4c06
|
||||
Subproject commit bcfbdf2e0cc28ffeacb14d9cb694af4442a3b110
|
Loading…
Reference in New Issue
Block a user