mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
f590ba3ccb
Sokol chain is dead: https://blockscout.com/poa/sokol
28 lines
429 B
Go
28 lines
429 B
Go
package consensusconfig
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/ledgerwatch/erigon/params/networkname"
|
|
)
|
|
|
|
//go:embed poagnosis.json
|
|
var Gnosis []byte
|
|
|
|
//go:embed poachiado.json
|
|
var Chiado []byte
|
|
|
|
//go:embed test.json
|
|
var Test []byte
|
|
|
|
func GetConfigByChain(chainName string) []byte {
|
|
switch chainName {
|
|
case networkname.GnosisChainName:
|
|
return Gnosis
|
|
case networkname.ChiadoChainName:
|
|
return Chiado
|
|
default:
|
|
return Test
|
|
}
|
|
}
|