Skip to content

Commit

Permalink
fix suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Sep 25, 2024
1 parent 5f5ea14 commit 175d945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/rollapp/keeper/msg_server_update_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (k msgServer) UpdateState(goCtx context.Context, msg *types.MsgUpdateState)
}

// check to see if received height is the one we expected
expectedStartHeight := stateInfo.StartHeight + stateInfo.NumBlocks()
expectedStartHeight := stateInfo.LastHeight() + 1
if expectedStartHeight != msg.StartHeight {
return nil, errorsmod.Wrapf(types.ErrWrongBlockHeight,
"expected height (%d), but received (%d)",
Expand Down

0 comments on commit 175d945

Please sign in to comment.