erigon-pulse/consensus/aura/consensusconfig/embed.go
e-danko c970261ac9
switched Fermion to Clique (#2823)
* switched Fermion to Clique

* Update Fermion to Clique: updated genesis block hash
2021-10-13 17:51:45 +03:00

24 lines
358 B
Go

package consensusconfig
import (
_ "embed"
"github.com/ledgerwatch/erigon/params"
)
//go:embed poasokol.json
var Sokol []byte
//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
}
}