erigon-pulse/consensus/aura/consensusconfig/embed.go

20 lines
292 B
Go
Raw Normal View History

package consensusconfig
import (
_ "embed"
"github.com/ledgerwatch/erigon/params/networkname"
)
//go:embed poasokol.json
var Sokol []byte
2021-09-27 12:56:17 +00:00
func GetConfigByChain(chainName string) []byte {
switch chainName {
case networkname.SokolChainName:
2021-09-27 12:56:17 +00:00
return Sokol
default:
return Sokol
}
}