Skip to content

Commit

Permalink
fix(op-node): not do sequence action instantly (ethereum-optimism#90)
Browse files Browse the repository at this point in the history
* fix(op-node): delay if sequencer start build action return error

* fix not do sequence action instantly
  • Loading branch information
bnoieh authored Dec 1, 2023
1 parent 9505ae8 commit 226eb0b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions op-node/rollup/driver/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,7 @@ func (s *Driver) eventLoop() {
// This may adjust at any time based on fork-choice changes or previous errors.
//
// update sequencer time if the head changed
delay := s.sequencer.PlanNextSequencerAction()
if delay == 0 {
// immediately do sequencerStep if time is ready
if err := sequencerStep(); err != nil {
return
}
// sequencerStep was already done, so we continue to next round
continue
} else {
planSequencerAction()
}
planSequencerAction()
}
} else {
sequencerCh = nil
Expand Down

0 comments on commit 226eb0b

Please sign in to comment.