Skip to content

Commit

Permalink
Fix randomAnchorPoint building
Browse files Browse the repository at this point in the history
  • Loading branch information
zilm13 committed Sep 19, 2023
1 parent 5eb9410 commit 9c627da
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 9c627da

Please sign in to comment.