diff --git a/cmd/sentry/download/sentry_api.go b/cmd/sentry/download/sentry_api.go index 5f2b26865..05f7663d7 100644 --- a/cmd/sentry/download/sentry_api.go +++ b/cmd/sentry/download/sentry_api.go @@ -106,7 +106,7 @@ func (cs *ControlServerImpl) SendHeaderRequest(ctx context.Context, req *headerd } minBlock := req.Number if !req.Reverse { - minBlock = req.Number + req.Length*req.Skip + minBlock = req.Number + (req.Length-1)*(req.Skip+1) } outreq := proto_sentry.SendMessageByMinBlockRequest{