Skip to content

Commit 20e2a2f

Browse files
committed
Fix tests
1 parent 9f78c54 commit 20e2a2f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

shared/services/rewards/mock_v11_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -909,12 +909,12 @@ func TestInsufficientEthForBonusesesV11(tt *testing.T) {
909909
// Check the rewards file
910910
rewardsFile := v11Artifacts.RewardsFile
911911
ethOne := rewardsFile.GetNodeSmoothingPoolEth(nodeOne.Address)
912-
if ethOne.Uint64() != 579 {
913-
t.Fatalf("Node one ETH amount does not match expected value: %s != %d", ethOne.String(), 169+416)
912+
if ethOne.Uint64() != 707 {
913+
t.Fatalf("Node one ETH amount does not match expected value: %s != %d", ethOne.String(), 707)
914914
}
915915
ethTwo := rewardsFile.GetNodeSmoothingPoolEth(nodeTwo.Address)
916-
if ethTwo.Uint64() != 420 {
917-
t.Fatalf("Node two ETH amount does not match expected value: %s != %d", ethTwo.String(), 177+237)
916+
if ethTwo.Uint64() != 492 {
917+
t.Fatalf("Node two ETH amount does not match expected value: %s != %d", ethTwo.String(), 492)
918918
}
919919

920920
// Check the minipool performance file
@@ -923,15 +923,15 @@ func TestInsufficientEthForBonusesesV11(tt *testing.T) {
923923
if !ok {
924924
t.Fatalf("Node one minipool performance not found")
925925
}
926-
if perfOne.GetBonusEthEarned().Uint64() != 393 {
927-
t.Fatalf("Node one bonus does not match expected value: %s != %d", perfOne.GetBonusEthEarned().String(), 416)
926+
if perfOne.GetBonusEthEarned().Uint64() != 521 {
927+
t.Fatalf("Node one bonus does not match expected value: %s != %d", perfOne.GetBonusEthEarned().String(), 521)
928928
}
929929
perfTwo, ok := minipoolPerformanceFile.GetMinipoolPerformance(nodeTwo.Minipools[0].Address)
930930
if !ok {
931931
t.Fatalf("Node two minipool performance not found")
932932
}
933-
if perfTwo.GetBonusEthEarned().Uint64() != 225 {
934-
t.Fatalf("Node two bonus does not match expected value: %s != %d", perfTwo.GetBonusEthEarned().String(), 237)
933+
if perfTwo.GetBonusEthEarned().Uint64() != 297 {
934+
t.Fatalf("Node two bonus does not match expected value: %s != %d", perfTwo.GetBonusEthEarned().String(), 297)
935935
}
936936
}
937937

shared/types/eth2/fork/electra/state_electra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func (state *BeaconState) GetSlot() uint64 {
298298
return state.Slot
299299
}
300300

301-
// Added for compatibility
301+
// Added for compatibility
302302
func (state *BeaconState) BlockHeaderProof() ([][]byte, error) {
303303
return nil, nil
304304
}

shared/types/eth2/fork/fulu/state_fulu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func (state *BeaconState) BlockRootProof(slot uint64) ([][]byte, error) {
283283
if err != nil {
284284
return nil, fmt.Errorf("could not get proof for block root: %w", err)
285285
}
286-
286+
287287
return proof.Hashes, nil
288288
}
289289

0 commit comments

Comments
 (0)