package consensusconfig import ( _ "embed" "github.com/ledgerwatch/erigon/params" ) //go:embed poasokol.json var Sokol []byte //go:embed kovan.json var Kovan []byte func GetConfigByChain(chainName string) []byte { switch chainName { case params.SokolChainName: return Sokol case params.KovanChainName: return Kovan default: return Sokol } }