mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
cd5ef32f37
* Draft: gnosis-chain * Fix Gnosis allocation Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
25 lines
388 B
Go
25 lines
388 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
|
|
|
|
func GetConfigByChain(chainName string) []byte {
|
|
switch chainName {
|
|
case networkname.SokolChainName:
|
|
return Sokol
|
|
case networkname.GnosisChainName:
|
|
return Gnosis
|
|
default:
|
|
return Sokol
|
|
}
|
|
}
|