mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 20:41:20 +00:00
7346c8fbb6
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
33 lines
521 B
Go
33 lines
521 B
Go
package consensusconfig
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/ledgerwatch/erigon/params/networkname"
|
|
)
|
|
|
|
//go:embed poasokol.json
|
|
var Sokol []byte
|
|
|
|
//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.SokolChainName:
|
|
return Sokol
|
|
case networkname.GnosisChainName:
|
|
return Gnosis
|
|
case networkname.ChiadoChainName:
|
|
return Chiado
|
|
default:
|
|
return Test
|
|
}
|
|
}
|