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

24 lines
358 B
Go
Raw Normal View History

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