mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
c970261ac9
* switched Fermion to Clique * Update Fermion to Clique: updated genesis block hash
24 lines
358 B
Go
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
|
|
}
|
|
}
|