Skip to content

Commit 9d7601c

Browse files
committed
allow other processing
1 parent ff4727a commit 9d7601c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sequencers/based/sequencer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (s *BasedSequencer) GetNextBatch(ctx context.Context, req coresequencer.Get
110110
batch := s.createBatchFromCheckpoint(req.MaxBytes)
111111

112112
// Update checkpoint with how many transactions we consumed
113-
if daHeight > 0 {
113+
if daHeight > 0 || len(batch.Transactions) > 0 {
114114
s.checkpoint.TxIndex += uint64(len(batch.Transactions))
115115

116116
// If we've consumed all transactions from this DA epoch, move to next

sequencers/single/sequencer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (c *Sequencer) GetNextBatch(ctx context.Context, req coresequencer.GetNextB
169169
}
170170

171171
// Update checkpoint after consuming forced inclusion transactions
172-
if daHeight > 0 {
172+
if daHeight > 0 || len(forcedTxs) > 0 {
173173
c.checkpoint.TxIndex += uint64(len(forcedTxs))
174174

175175
// If we've consumed all transactions from this DA epoch, move to next

0 commit comments

Comments
 (0)