Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Nov 12, 2024
1 parent c0acac1 commit feaf306
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions execution/gethexec/executionengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ func (s *ExecutionEngine) backlogL1GasCharged() uint64 {
s.cachedL1PriceData.msgToL1PriceData[0].l1GasCharged)
}

func (s *ExecutionEngine) SetReorgEventsNotifier(reorgEventsNotifier chan struct{}) {
s.reorgEventsNotifier = reorgEventsNotifier
}

func (s *ExecutionEngine) MarkFeedStart(to arbutil.MessageIndex) {
s.cachedL1PriceData.mutex.Lock()
defer s.cachedL1PriceData.mutex.Unlock()
Expand Down Expand Up @@ -187,6 +183,16 @@ func (s *ExecutionEngine) SetRecorder(recorder *BlockRecorder) {
s.recorder = recorder
}

func (s *ExecutionEngine) SetReorgEventsNotifier(reorgEventsNotifier chan struct{}) {
if s.Started() {
panic("trying to set reorg events notifier after start")
}
if s.reorgEventsNotifier != nil {
panic("trying to set reorg events notifier when already set")
}
s.reorgEventsNotifier = reorgEventsNotifier
}

func (s *ExecutionEngine) EnableReorgSequencing() {
if s.Started() {
panic("trying to enable reorg sequencing after start")
Expand Down
2 changes: 1 addition & 1 deletion go-ethereum

0 comments on commit feaf306

Please sign in to comment.