diff --git a/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/CapellaExecutionClientHandlerTest.java b/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/CapellaExecutionClientHandlerTest.java index 0e2dec8eee1..317a66ebf87 100644 --- a/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/CapellaExecutionClientHandlerTest.java +++ b/ethereum/executionlayer/src/test/java/tech/pegasys/teku/ethereum/executionlayer/CapellaExecutionClientHandlerTest.java @@ -120,8 +120,7 @@ void engineForkChoiceUpdatedBuildingBlockOnForkTransition_shouldCallEngineForkCh final UInt64 capellaForkEpoch = UInt64.valueOf(42); spec = TestSpecFactory.createMinimalWithCapellaForkEpoch(capellaForkEpoch); final ExecutionClientHandler handler = getHandler(); - // building block for Capella - final UInt64 blockSlot = spec.computeStartSlotAtEpoch(capellaForkEpoch); + final UInt64 capellaStartSlot = spec.computeStartSlotAtEpoch(capellaForkEpoch); final PayloadBuildingAttributes attributes = new PayloadBuildingAttributes( dataStructureUtil.randomUInt64(), @@ -129,13 +128,14 @@ void engineForkChoiceUpdatedBuildingBlockOnForkTransition_shouldCallEngineForkCh dataStructureUtil.randomEth1Address(), Optional.empty(), Optional.of(List.of()), - blockSlot); + // building block for Capella + capellaStartSlot.plus(1)); final Optional payloadAttributes = PayloadAttributesV2.fromInternalPayloadBuildingAttributesV2(Optional.of(attributes)); // headBlockSlot in ForkChoiceState is still in Bellatrix final ForkChoiceState forkChoiceState = dataStructureUtil.randomForkChoiceState( - blockSlot.minusMinZero(1), dataStructureUtil.randomBytes32(), false); + capellaStartSlot.minusMinZero(1), dataStructureUtil.randomBytes32(), false); final ForkChoiceStateV1 forkChoiceStateV1 = ForkChoiceStateV1.fromInternalForkChoiceState(forkChoiceState); final SafeFuture> dummyResponse =