Compare commits

...

1 Commits

Author SHA1 Message Date
james-prysm
6e11315559 partial fix 2025-08-22 11:56:13 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ type CommitteeAssignment struct {
// than or equal to the minimum valid start slot calculated based on the state's current slot and historical roots.
func VerifyAssignmentEpoch(epoch primitives.Epoch, state state.BeaconState) error {
nextEpoch := time.NextEpoch(state)
if epoch > nextEpoch {
if epoch > nextEpoch && state.Version() < version.Fulu { // due to fulu not transitioning the state forward and using the proposer look ahead instead
return fmt.Errorf("epoch %d can't be greater than next epoch %d", epoch, nextEpoch)
}

View File

@@ -1030,7 +1030,7 @@ func (s *Server) GetProposerDuties(w http.ResponseWriter, r *http.Request) {
return
}
// Advance state with empty transitions up to the requested epoch start slot for pre fulu state only. Fulu state utilizes proposer look ahead field.
if st.Slot() < epochStartSlot && st.Version() != version.Fulu {
if st.Slot() < epochStartSlot && st.Version() < version.Fulu {
headRoot, err := s.HeadFetcher.HeadRoot(ctx)
if err != nil {
httputil.HandleError(w, fmt.Sprintf("Could not get head root: %v ", err), http.StatusInternalServerError)