Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jun 6, 2024
1 parent d4ca525 commit bd4dc4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/state-transition/pkg/core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (sp *StateProcessor[
}

// Iterate until we are "caught up".
for stateSlot < slot {
for ; stateSlot < slot; stateSlot++ {
// Process the slot
if err = sp.processSlot(st); err != nil {
return nil, err
Expand All @@ -193,8 +193,8 @@ func (sp *StateProcessor[
epochValidatorUpdates...,
)
}
stateSlot++
if err = st.SetSlot(stateSlot); err != nil {

if err = st.SetSlot(stateSlot + 1); err != nil {
return nil, err
}

Expand Down

0 comments on commit bd4dc4b

Please sign in to comment.