erigon-pulse/consensus/aura/consensusconfig/embed.go
Andrew Ashikhmin f590ba3ccb
Remove Sokol (#7224)
Sokol chain is dead: https://blockscout.com/poa/sokol
2023-03-30 14:34:46 +00:00

28 lines
429 B
Go

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
}
}