erigon-pulse/consensus/aura/consensusconfig/embed.go
primal_concrete_sledge cd5ef32f37
Add config for Gnosis Chain (#4671)
* Draft: gnosis-chain

* Fix Gnosis allocation

Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
2022-07-12 17:21:52 +02:00

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