mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-18 16:44:12 +00:00
ecb10e8548
* save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * Squashed 'interfaces/' content from commit e5b1945d0 git-subtree-dir: interfaces git-subtree-split: e5b1945d02da7a7f00e2289034ee90a6edd60184 * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save * save
25 lines
381 B
Go
25 lines
381 B
Go
package consensusconfig
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/ledgerwatch/erigon/params/networkname"
|
|
)
|
|
|
|
//go:embed poasokol.json
|
|
var Sokol []byte
|
|
|
|
//go:embed kovan.json
|
|
var Kovan []byte
|
|
|
|
func GetConfigByChain(chainName string) []byte {
|
|
switch chainName {
|
|
case networkname.SokolChainName:
|
|
return Sokol
|
|
case networkname.KovanChainName:
|
|
return Kovan
|
|
default:
|
|
return Sokol
|
|
}
|
|
}
|