Skip to content

Commit

Permalink
Add mainnet configs (#62)
Browse files Browse the repository at this point in the history
* Mainnet launching test

* Mainnet launching test change bootnode

* Mainnet config

* Mainnet config

* Mainnet config

* Mainnet config

* Mainnet config

* Mainnet config

* Mainnet config

* Fix unit test: TestDownloadBackwardsCompatibleCombined

* Fix unit test: TestMaxRequestBlock

* Fix unit test: TestGenerateVoluntaryExits, TestGenerateFullBlock_ValidVoluntaryExits

* Fix unit test in beacon-chain package

* Fix AlpacaForkEpoch for testing

* Fix unit test: TestRPCBeaconBlocksByRange_validateRangeRequest

* validator unit tests fixed

* fixed tests : validator/client

---------

Co-authored-by: syjn99 <[email protected]>
Co-authored-by: Jay <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent d40fac8 commit c05e4b8
Show file tree
Hide file tree
Showing 24 changed files with 102 additions and 15 deletions.
2 changes: 2 additions & 0 deletions api/client/beacon/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ func TestDownloadBackwardsCompatibleCombined(t *testing.T) {
cfg.AltairForkEpoch = 299
cfg.BellatrixForkEpoch = 300
cfg.CapellaForkEpoch = 301
cfg.DenebForkEpoch = 302
cfg.AlpacaForkEpoch = 303
cfg.InitializeForkSchedule()
params.OverrideBeaconConfig(cfg)

Expand Down
6 changes: 6 additions & 0 deletions beacon-chain/blockchain/receive_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ import (
)

func TestService_ReceiveBlock(t *testing.T) {
params.SetupTestConfigCleanup(t)
cfg := params.BeaconConfig()
cfg.DenebForkEpoch = 3
cfg.AlpacaForkEpoch = 5
params.OverrideBeaconConfig(cfg)

ctx := context.Background()

genesis, keys := util.DeterministicGenesisState(t, 64)
Expand Down
7 changes: 7 additions & 0 deletions beacon-chain/core/blocks/exit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ func TestProcessVoluntaryExits_ExitAlreadySubmitted(t *testing.T) {
}

func TestProcessVoluntaryExits_AppliesCorrectStatus(t *testing.T) {
params.SetupTestConfigCleanup(t)
cfg := params.BeaconConfig()
cfg.CapellaForkEpoch = 300
cfg.DenebForkEpoch = 301
cfg.AlpacaForkEpoch = 302
params.OverrideBeaconConfig(cfg)

exits := []*ethpb.SignedVoluntaryExit{
{
Exit: &ethpb.VoluntaryExit{
Expand Down
1 change: 1 addition & 0 deletions beacon-chain/core/helpers/validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ func TestComputeProposerIndex(t *testing.T) {
}

func TestIsEligibleForActivationQueue(t *testing.T) {
params.SetupForkEpochConfigForTest()
tests := []struct {
name string
validator *ethpb.Validator
Expand Down
8 changes: 8 additions & 0 deletions beacon-chain/core/transition/transition_no_verify_sig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ func TestProcessBlockNoVerifyAnySigAltair_OK(t *testing.T) {
}

func TestProcessBlockNoVerify_SigSetContainsDescriptions(t *testing.T) {
cfg := params.MainnetConfig().Copy()
cfg.AltairForkEpoch = 300
cfg.BellatrixForkEpoch = 301
cfg.CapellaForkEpoch = 302
cfg.DenebForkEpoch = 303
cfg.AlpacaForkEpoch = 304
params.OverrideBeaconConfig(cfg)

beaconState, block, _, _, _ := createFullBlockWithOperations(t)
wsb, err := blocks.NewSignedBeaconBlock(block)
require.NoError(t, err)
Expand Down
17 changes: 17 additions & 0 deletions beacon-chain/operations/attestations/prune_expired_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ import (
)

func TestPruneExpired_Ticker(t *testing.T) {
params.SetupTestConfigCleanup(t)
cfg := params.BeaconConfig()
cfg.DenebForkEpoch = 3
cfg.AlpacaForkEpoch = 5
params.OverrideBeaconConfig(cfg)

ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
defer cancel()

Expand Down Expand Up @@ -85,6 +91,12 @@ func TestPruneExpired_Ticker(t *testing.T) {
}

func TestPruneExpired_PruneExpiredAtts(t *testing.T) {
params.SetupTestConfigCleanup(t)
cfg := params.BeaconConfig()
cfg.DenebForkEpoch = 3
cfg.AlpacaForkEpoch = 5
params.OverrideBeaconConfig(cfg)

s, err := NewService(context.Background(), &Config{Pool: NewPool()})
require.NoError(t, err)

Expand Down Expand Up @@ -120,6 +132,11 @@ func TestPruneExpired_PruneExpiredAtts(t *testing.T) {
}

func TestPruneExpired_Expired(t *testing.T) {
params.SetupTestConfigCleanup(t)
cfg := params.BeaconConfig()
cfg.DenebForkEpoch = 3
params.OverrideBeaconConfig(cfg)

s, err := NewService(context.Background(), &Config{Pool: NewPool()})
require.NoError(t, err)

Expand Down
5 changes: 5 additions & 0 deletions beacon-chain/operations/voluntaryexits/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ func TestPendingExits(t *testing.T) {
}

func TestExitsForInclusion(t *testing.T) {
cfg := params.BeaconConfig().Copy()
cfg.DenebForkEpoch = 300
cfg.AlpacaForkEpoch = 350
params.OverrideBeaconConfig(cfg)

spb := &ethpb.BeaconStateCapella{
Fork: &ethpb.Fork{
CurrentVersion: params.BeaconConfig().GenesisForkVersion,
Expand Down
2 changes: 2 additions & 0 deletions beacon-chain/rpc/eth/builder/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import (
)

func TestExpectedWithdrawals_BadRequest(t *testing.T) {
params.SetupForkEpochConfigForTest()

st, err := util.NewBeaconStateCapella()
slotsAhead := 5000
require.NoError(t, err)
Expand Down
Binary file modified beacon-chain/state/genesis/mainnet.ssz.snappy
Binary file not shown.
1 change: 1 addition & 0 deletions beacon-chain/sync/backfill/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func TestDomainCache(t *testing.T) {
cfg.BellatrixForkEpoch = 2
cfg.CapellaForkEpoch = 3
cfg.DenebForkEpoch = 4
cfg.AlpacaForkEpoch = 5
params.OverrideBeaconConfig(cfg)
cfg.InitializeForkSchedule()

Expand Down
2 changes: 2 additions & 0 deletions beacon-chain/sync/rpc_beacon_blocks_by_range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ func TestRPCBeaconBlocksByRange_RPCHandlerRateLimitOverflow(t *testing.T) {
}

func TestRPCBeaconBlocksByRange_validateRangeRequest(t *testing.T) {
params.SetupForkEpochConfigForTest()

slotsSinceGenesis := primitives.Slot(1000)
offset := int64(slotsSinceGenesis.Mul(params.BeaconConfig().SecondsPerSlot))
clock := startup.NewClock(time.Now().Add(time.Second*time.Duration(-1*offset)), [32]byte{})
Expand Down
3 changes: 3 additions & 0 deletions beacon-chain/sync/validate_aggregate_proof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ func TestValidateAggregateAndProof_ExistedInPool(t *testing.T) {
}

func TestValidateAggregateAndProof_CanValidate(t *testing.T) {
params.SetupForkEpochConfigForTest()

db := dbtest.SetupDB(t)
p := p2ptest.NewTestP2P(t)

Expand Down Expand Up @@ -449,6 +451,7 @@ func TestValidateAggregateAndProof_CanValidate(t *testing.T) {
}

func TestVerifyIndexInCommittee_SeenAggregatorEpoch(t *testing.T) {
params.SetupForkEpochConfigForTest()
db := dbtest.SetupDB(t)
p := p2ptest.NewTestP2P(t)

Expand Down
2 changes: 2 additions & 0 deletions beacon-chain/sync/validate_beacon_attestation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import (
)

func TestService_validateCommitteeIndexBeaconAttestation(t *testing.T) {
params.SetupForkEpochConfigForTest()

p := p2ptest.NewTestP2P(t)
db := dbtest.SetupDB(t)
chain := &mockChain.ChainService{
Expand Down
4 changes: 4 additions & 0 deletions beacon-chain/sync/validate_beacon_blocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ func TestValidateBeaconBlockPubSub_RejectBlocksFromThePast(t *testing.T) {
}

func TestValidateBeaconBlockPubSub_SeenProposerSlot(t *testing.T) {
params.SetupForkEpochConfigForTest()
db := dbtest.SetupDB(t)
p := p2ptest.NewTestP2P(t)
ctx := context.Background()
Expand Down Expand Up @@ -901,6 +902,7 @@ func TestValidateBeaconBlockPubSub_ParentNotFinalizedDescendant(t *testing.T) {
}

func TestValidateBeaconBlockPubSub_InvalidParentBlock(t *testing.T) {
params.SetupForkEpochConfigForTest()
db := dbtest.SetupDB(t)
p := p2ptest.NewTestP2P(t)
ctx := context.Background()
Expand Down Expand Up @@ -1177,6 +1179,7 @@ func TestService_isBlockQueueable(t *testing.T) {
}

func TestValidateBeaconBlockPubSub_ValidExecutionPayload(t *testing.T) {
params.SetupForkEpochConfigForTest()
db := dbtest.SetupDB(t)
p := p2ptest.NewTestP2P(t)
ctx := context.Background()
Expand Down Expand Up @@ -1409,6 +1412,7 @@ func Test_validateBellatrixBeaconBlockParentValidation(t *testing.T) {
}

func Test_validateBeaconBlockProcessingWhenParentIsOptimistic(t *testing.T) {
params.SetupForkEpochConfigForTest()
db := dbtest.SetupDB(t)
p := p2ptest.NewTestP2P(t)
ctx := context.Background()
Expand Down
1 change: 1 addition & 0 deletions beacon-chain/sync/validate_blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func TestValidateBlob_AlreadySeenInCache(t *testing.T) {
}

func TestValidateBlob_InvalidTopicIndex(t *testing.T) {
params.SetupForkEpochConfigForTest()
ctx := context.Background()
p := p2ptest.NewTestP2P(t)
chainService := &mock.ChainService{Genesis: time.Unix(time.Now().Unix()-int64(params.BeaconConfig().SecondsPerSlot), 0)}
Expand Down
12 changes: 6 additions & 6 deletions config/params/mainnet_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const (
// Bellatrix Fork Epoch for mainnet config.
mainnetBellatrixForkEpoch = 0 // epoch 0
// Capella Fork Epoch for mainnet config.
mainnetCapellaForkEpoch = 10 // epoch 10
mainnetCapellaForkEpoch = 0 // epoch 0
// Deneb Fork Epoch for mainnet config.
mainnetDenebForkEpoch = math.MaxUint64 // not activated
mainnetDenebForkEpoch = 0 // epoch 0
// Alpaca Fork Epoch for mainnet config
mainnetAlpacaForkEpoch = math.MaxUint64 // Far future / to be defined
mainnetAlpacaForkEpoch = 0 // epoch 0
)

var mainnetNetworkConfig = &NetworkConfig{
Expand All @@ -40,8 +40,8 @@ var mainnetNetworkConfig = &NetworkConfig{
ContractDeploymentBlock: 0, // Note: contract was deployed in genesis block.
BootstrapNodes: []string{
// Over Mainnet Bootnodes
"enr:-LG4QMDxg9JWyQFDFDmNWYgsTBhH5dFmIW-X8q6g6S-3ZpDcMu6ouv4NnCOvZ9BGsIkWrwtx2iVaUAJn7dgS_TEA_XOGAZGN3idXh2F0dG5ldHOIAAAAAAAAAACCaWSCdjSCaXCEj8Zt-YRvdmVykNBNsU8AAAAY__________-Jc2VjcDI1NmsxoQOuL8NQY7JaHKQ43e9HleHJNX0fBiGnX80b5y0z1fl82oN1ZHCCyyA", // Bootnode1
"enr:-LG4QCu6n9asLF4GydPqGVMhGvM3QJ4CPdGTmxehYTnYWh17eh26of_NXeeh7f5YxMtR3MOnibbQ_iWo_WjREufzv-SGAZGN3icdh2F0dG5ldHOIAAAAAAAAAACCaWSCdjSCaXCEmCriZYRvdmVykNBNsU8AAAAY__________-Jc2VjcDI1NmsxoQJUB5E3lpebYb4TgRatlNrvOxqhSmeX9ZwWOCEND5cllIN1ZHCCyyA", // Bootnode2
"enr:-LG4QKpZY1Wji0rB5pvSusDdWWrLM3WuRuuudXTeBZZGlTgQdWgdJX6Yjzn487rhZfAPt7JYddJo4KK3jLZELa6xxNiGAZOdArmMh2F0dG5ldHOIAAAAAAAAAACCaWSCdjSCaXCEnfU0eoRvdmVykNBNsU8AAAAY__________-Jc2VjcDI1NmsxoQMv1vYgI8uEPbb6cSuvryE0T8-BzslN9B8piob2HqNdZYN1ZHCCyyA", // Bootnode1
"enr:-LG4QFT8l2xOTCGb7aXpaI0y9h2ndO9iMpXUNyFHG19WAmbUGC8zcB-Yx2_CniAexWnDgHA2zoLtX_LPah1kJV4QLYSGAZOdArmUh2F0dG5ldHOIAAAAAAAAAACCaWSCdjSCaXCEnfUwuYRvdmVykNBNsU8AAAAY__________-Jc2VjcDI1NmsxoQPMOuY4Rfww4PkAD-0mlUTsPU-mCAV2FT96IwS9Or3j2YN1ZHCCyyA", // Bootnode2
},
}

Expand Down Expand Up @@ -162,7 +162,7 @@ var mainnetBeaconConfig = &BeaconChainConfig{
DomainApplicationBuilder: bytesutil.Uint32ToBytes4(0x00000001),

// Prysm constants.
GenesisValidatorsRoot: [32]byte{116, 251, 77, 166, 135, 32, 137, 147, 238, 130, 34, 6, 238, 31, 73, 21, 196, 191, 158, 92, 157, 62, 103, 50, 199, 117, 185, 152, 44, 159, 128, 132},
GenesisValidatorsRoot: [32]byte{226, 76, 93, 178, 184, 48, 49, 145, 55, 48, 26, 117, 222, 207, 221, 94, 121, 63, 127, 122, 205, 104, 23, 114, 121, 150, 248, 36, 133, 108, 200, 221},
GweiPerEth: 1000000000,
BLSSecretKeyLength: 32,
BLSPubkeyLength: 48,
Expand Down
4 changes: 0 additions & 4 deletions config/params/mainnet_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ func TestMaxRequestBlock(t *testing.T) {
expectedMaxBlock uint64
description string
}{
{
epoch: primitives.Epoch(mainnetDenebForkEpoch - 1), // Assuming the fork epoch is not 0
expectedMaxBlock: mainnetBeaconConfig.MaxRequestBlocks,
},
{
epoch: primitives.Epoch(mainnetDenebForkEpoch),
expectedMaxBlock: mainnetBeaconConfig.MaxRequestBlocksDeneb,
Expand Down
1 change: 1 addition & 0 deletions config/params/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func SetupForkEpochConfigForTest() {
cfg.BellatrixForkEpoch = 144896
cfg.CapellaForkEpoch = 194048
cfg.DenebForkEpoch = 269568
cfg.AlpacaForkEpoch = 342308
cfg.InitializeForkSchedule()
OverrideBeaconConfig(cfg)
}
10 changes: 10 additions & 0 deletions testing/util/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ func TestGenerateFullBlock_ValidDeposits(t *testing.T) {
}

func TestGenerateFullBlock_ValidVoluntaryExits(t *testing.T) {
config := params.BeaconConfig()
config.AltairForkEpoch = 301
config.BellatrixForkEpoch = 302
config.CapellaForkEpoch = 303
config.DenebForkEpoch = 304
config.AlpacaForkEpoch = 305
params.OverrideBeaconConfig(config)

beaconState, privs := DeterministicGenesisState(t, 256)
// Moving the state 2048 epochs forward due to PERSISTENT_COMMITTEE_PERIOD.
err := beaconState.SetSlot(params.BeaconConfig().SlotsPerEpoch.Mul(uint64(params.BeaconConfig().ShardCommitteePeriod)).Add(3))
Expand Down Expand Up @@ -363,6 +371,8 @@ func TestGenerateVoluntaryExits(t *testing.T) {
params.SetupTestConfigCleanup(t)
config := params.BeaconConfig()
config.ShardCommitteePeriod = 0
config.DenebForkEpoch = 10
config.AlpacaForkEpoch = 15
params.OverrideBeaconConfig(config)

beaconState, privKeys := DeterministicGenesisState(t, 256)
Expand Down
3 changes: 3 additions & 0 deletions validator/client/aggregate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func TestSubmitAggregateAndProof_GetDutiesRequestFailure(t *testing.T) {
func TestSubmitAggregateAndProof_SignFails(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
var pubKey [fieldparams.BLSPubkeyLength]byte
Expand Down Expand Up @@ -87,6 +88,7 @@ func TestSubmitAggregateAndProof_SignFails(t *testing.T) {
func TestSubmitAggregateAndProof_Ok(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("Phase 0 (SlashingProtectionMinimal:%v)", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
var pubKey [fieldparams.BLSPubkeyLength]byte
Expand Down Expand Up @@ -193,6 +195,7 @@ func TestSubmitAggregateAndProof_Distributed(t *testing.T) {
ctx := context.Background()
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()

Expand Down
8 changes: 8 additions & 0 deletions validator/client/attest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func TestAttestToBlockHead_SubmitAttestation_EmptyCommittee(t *testing.T) {
func TestAttestToBlockHead_SubmitAttestation_RequestFailure(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
hook := logTest.NewGlobal()

validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
Expand Down Expand Up @@ -109,6 +110,8 @@ func TestAttestToBlockHead_SubmitAttestation_RequestFailure(t *testing.T) {
func TestAttestToBlockHead_AttestsCorrectly(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("Phase 0 (SlashingProtectionMinimal:%v)", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupTestConfigCleanup(t)
params.SetupForkEpochConfigForTest()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
hook := logTest.NewGlobal()
Expand Down Expand Up @@ -269,6 +272,7 @@ func TestAttestToBlockHead_AttestsCorrectly(t *testing.T) {
func TestAttestToBlockHead_BlocksDoubleAtt(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
hook := logTest.NewGlobal()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
Expand Down Expand Up @@ -325,6 +329,7 @@ func TestAttestToBlockHead_BlocksDoubleAtt(t *testing.T) {
func TestAttestToBlockHead_BlocksSurroundAtt(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
hook := logTest.NewGlobal()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
Expand Down Expand Up @@ -381,6 +386,7 @@ func TestAttestToBlockHead_BlocksSurroundAtt(t *testing.T) {
func TestAttestToBlockHead_BlocksSurroundedAtt(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
hook := logTest.NewGlobal()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
Expand Down Expand Up @@ -471,6 +477,7 @@ func TestAttestToBlockHead_DoesNotAttestBeforeDelay(t *testing.T) {
func TestAttestToBlockHead_DoesAttestAfterDelay(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()

Expand Down Expand Up @@ -520,6 +527,7 @@ func TestAttestToBlockHead_DoesAttestAfterDelay(t *testing.T) {
func TestAttestToBlockHead_CorrectBitfieldLength(t *testing.T) {
for _, isSlashingProtectionMinimal := range [...]bool{false, true} {
t.Run(fmt.Sprintf("SlashingProtectionMinimal:%v", isSlashingProtectionMinimal), func(t *testing.T) {
params.SetupForkEpochConfigForTest()
validator, m, validatorKey, finish := setup(t, isSlashingProtectionMinimal)
defer finish()
validatorIndex := primitives.ValidatorIndex(2)
Expand Down
4 changes: 2 additions & 2 deletions validator/client/beacon-api/domain_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (

func TestGetDomainData_ValidDomainData(t *testing.T) {
const genesisValidatorRoot = "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
forkVersion := params.BeaconConfig().BellatrixForkVersion
epoch := params.BeaconConfig().BellatrixForkEpoch
forkVersion := params.BeaconConfig().AlpacaForkVersion
epoch := params.BeaconConfig().AlpacaForkEpoch
domainType := params.BeaconConfig().DomainBeaconProposer

genesisValidatorRootBytes, err := hexutil.Decode(genesisValidatorRoot)
Expand Down
Loading

0 comments on commit c05e4b8

Please sign in to comment.