Skip to content

Commit

Permalink
feat(batcher): modify batcher to immediately submit batch transaction…
Browse files Browse the repository at this point in the history
… just before KromaMPTTime
  • Loading branch information
0xbenyun committed Nov 22, 2024
1 parent 3473ad1 commit 62f7667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions op-batcher/batcher/channel_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ func (s *channelManager) processBlocks() error {
if s.currentChannel.IsFull() {
break
}
if s.rollupCfg.KromaMPTTime != nil && block.Time() == *s.rollupCfg.KromaMPTTime-s.rollupCfg.BlockTime {
s.currentChannel.channelBuilder.setFullErr(errors.New("reached the block just before KromaMPTTime"))
break
}
}

if blocksAdded == len(s.blocks) {
Expand Down

0 comments on commit 62f7667

Please sign in to comment.