Skip to content

Commit

Permalink
change naming
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jul 4, 2023
1 parent bdccc81 commit 438357c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,22 @@ 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(),
dataStructureUtil.randomBytes32(),
dataStructureUtil.randomEth1Address(),
Optional.empty(),
Optional.of(List.of()),
blockSlot);
// building block for Capella
capellaStartSlot.plus(1));
final Optional<PayloadAttributesV2> 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<Response<ForkChoiceUpdatedResult>> dummyResponse =
Expand Down

0 comments on commit 438357c

Please sign in to comment.