mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 02:52:19 +00:00
3f1d5a4c92
* added proper chain config * updated configs * save progress * fix lint Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
17 lines
437 B
Go
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})
|
|
}
|