Skip to content

Commit

Permalink
remove impossible condition (ethereum-optimism#9885)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Mar 19, 2024
1 parent 22dd936 commit 730199c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions op-node/rollup/derive/batch_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ func (bq *BatchQueue) NextBatch(ctx context.Context, parent eth.L2BlockRef) (*Si
for i, l1Block := range bq.l1Blocks {
if parent.L1Origin.Number == l1Block.Number {
bq.l1Blocks = bq.l1Blocks[i:]
if len(bq.l1Blocks) > 0 {
bq.log.Debug("Advancing internal L1 blocks", "next_epoch", bq.l1Blocks[0].ID(), "next_epoch_time", bq.l1Blocks[0].Time)
} else {
bq.log.Debug("Advancing internal L1 blocks. No L1 blocks left")
}
bq.log.Debug("Advancing internal L1 blocks", "next_epoch", bq.l1Blocks[0].ID(), "next_epoch_time", bq.l1Blocks[0].Time)
break
}
}
Expand Down

0 comments on commit 730199c

Please sign in to comment.