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 func GetConfigByChain(chainName string) []byte { switch chainName { case networkname.SokolChainName: return Sokol case networkname.GnosisChainName: return Gnosis case networkname.ChiadoChainName: return Chiado default: return Sokol } }