erigon-pulse/consensus/aura/consensusconfig/embed.go
ledgerwatch 7346c8fbb6
Extend mock_sentry to properly support forkValidator (#7008)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-03-03 07:00:54 +00:00

33 lines
521 B
Go

package consensusconfig
import (
_ "embed"
"github.com/ledgerwatch/erigon/params/networkname"
)
//go:embed poasokol.json
var Sokol []byte
//go:embed poagnosis.json
var Gnosis []byte
//go:embed poachiado.json
var Chiado []byte
//go:embed test.json
var Test []byte
func GetConfigByChain(chainName string) []byte {
switch chainName {
case networkname.SokolChainName:
return Sokol
case networkname.GnosisChainName:
return Gnosis
case networkname.ChiadoChainName:
return Chiado
default:
return Test
}
}