erigon-pulse/cmd/lightclient/fork/fork_test.go
Giulio rebuffo 3f1d5a4c92
Support for Goerli/Sepolia/Mainnet Fork ids on Consensus Layer (#5575)
* added proper chain config

* updated configs

* save progress

* fix lint

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-09-30 00:20:09 +02:00

17 lines
437 B
Go

package fork
import (
"testing"
"github.com/ledgerwatch/erigon/cmd/lightclient/clparams"
"github.com/stretchr/testify/require"
)
func TestMainnetFork(t *testing.T) {
beaconCfg := clparams.BeaconConfigs[clparams.MainnetNetwork]
genesisCfg := clparams.GenesisConfigs[clparams.MainnetNetwork]
digest, err := ComputeForkDigest(&beaconCfg, &genesisCfg)
require.NoError(t, err)
require.Equal(t, digest, [4]byte{74, 38, 197, 139})
}