package consensusconfig import ( _ "embed" "github.com/ledgerwatch/erigon/params/networkname" ) //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.GnosisChainName: return Gnosis case networkname.ChiadoChainName: return Chiado default: return Test } }