From 9c627dabf785d47b8eb3a43c6ddf88977632d5ca Mon Sep 17 00:00:00 2001 From: Dmitrii Shmatko Date: Tue, 19 Sep 2023 23:21:46 +0400 Subject: [PATCH] Fix randomAnchorPoint building --- .../tech/pegasys/teku/spec/util/DataStructureUtil.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ethereum/spec/src/testFixtures/java/tech/pegasys/teku/spec/util/DataStructureUtil.java b/ethereum/spec/src/testFixtures/java/tech/pegasys/teku/spec/util/DataStructureUtil.java index faf6761f00c..4d9ceadf540 100644 --- a/ethereum/spec/src/testFixtures/java/tech/pegasys/teku/spec/util/DataStructureUtil.java +++ b/ethereum/spec/src/testFixtures/java/tech/pegasys/teku/spec/util/DataStructureUtil.java @@ -1898,7 +1898,12 @@ public AnchorPoint randomAnchorPoint(final UInt64 epoch, final Fork currentFork) UInt64 slot = computeStartSlotAtEpoch(epoch); final BeaconBlockAndState blockAndState = randomBlockAndState( - slot, stateBuilderDeneb().slot(slot).fork(currentFork).build(), randomBytes32()); + slot, + stateBuilder(spec.atSlot(slot).getMilestone(), 10, 10) + .slot(slot) + .fork(currentFork) + .build(), + randomBytes32()); return AnchorPoint.fromInitialBlockAndState(spec, toSigned(blockAndState)); }