@@ -28,7 +28,7 @@ import (
2828 goheaderstore "github.com/celestiaorg/go-header/store"
2929
3030 "github.com/rollkit/go-sequencing"
31- seqGRPC "github.com/rollkit/go-sequencing/proxy/grpc"
31+ "github.com/rollkit/go-sequencing/proxy/grpc"
3232 "github.com/rollkit/rollkit/config"
3333 "github.com/rollkit/rollkit/da"
3434 "github.com/rollkit/rollkit/mempool"
@@ -161,7 +161,7 @@ type Manager struct {
161161 // in the DA
162162 daIncludedHeight atomic.Uint64
163163 // grpc client for sequencing middleware
164- seqClient * seqGRPC .Client
164+ seqClient * grpc .Client
165165 lastBatchHash []byte
166166 bq * BatchQueue
167167}
@@ -199,7 +199,7 @@ func NewManager(
199199 store store.Store ,
200200 mempool mempool.Mempool ,
201201 mempoolReaper * mempool.CListMempoolReaper ,
202- seqClient * seqGRPC .Client ,
202+ seqClient * grpc .Client ,
203203 proxyApp proxy.AppConnConsensus ,
204204 dalc * da.DAClient ,
205205 eventBus * cmtypes.EventBus ,
@@ -815,9 +815,6 @@ func (m *Manager) getHeadersFromHeaderStore(ctx context.Context, startHeight, en
815815 if startHeight > endHeight {
816816 return nil , fmt .Errorf ("startHeight (%d) is greater than endHeight (%d)" , startHeight , endHeight )
817817 }
818- if startHeight == 0 {
819- startHeight ++
820- }
821818 headers := make ([]* types.SignedHeader , endHeight - startHeight + 1 )
822819 for i := startHeight ; i <= endHeight ; i ++ {
823820 header , err := m .headerStore .GetByHeight (ctx , i )
@@ -833,9 +830,6 @@ func (m *Manager) getDataFromDataStore(ctx context.Context, startHeight, endHeig
833830 if startHeight > endHeight {
834831 return nil , fmt .Errorf ("startHeight (%d) is greater than endHeight (%d)" , startHeight , endHeight )
835832 }
836- if startHeight == 0 {
837- startHeight ++
838- }
839833 data := make ([]* types.Data , endHeight - startHeight + 1 )
840834 for i := startHeight ; i <= endHeight ; i ++ {
841835 d , err := m .dataStore .GetByHeight (ctx , i )
0 commit comments