Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions optimism/op-node/rollup/engine/engine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ func (e *EngineController) BackupUnsafeL2Head() eth.L2BlockRef {
}

func (e *EngineController) IsEngineSyncing() bool {
// return e.syncStatus == syncStatusWillStartEL || e.syncStatus == syncStatusStartedEL || e.syncStatus == syncStatusFinishedELButNotFinalized
return true
return e.syncStatus == syncStatusWillStartEL || e.syncStatus == syncStatusStartedEL || e.syncStatus == syncStatusFinishedELButNotFinalized
}

// Setters
Expand Down
2 changes: 1 addition & 1 deletion optimism/op-node/rollup/engine/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ func (d *EngDeriver) OnEvent(ev event.Event) bool {
"unsafe_timestamp", x.Unsafe.Time)
d.emitter.Emit(EngineResetConfirmedEvent(x))
case PromoteUnsafeEvent:
d.preconfChannels.SendL2Block(&x.Ref)
// Backup unsafeHead when new block is not built on original unsafe head.
if d.ec.unsafeHead.Number >= x.Ref.Number {
d.ec.SetBackupUnsafeL2Head(d.ec.unsafeHead, false)
Expand Down Expand Up @@ -498,7 +499,6 @@ func (d *EngDeriver) OnEvent(ev event.Event) bool {
d.emitter.Emit(PromoteSafeEvent(x))
}
case PromoteSafeEvent:
d.preconfChannels.SendL2Block(&x.Ref)
d.log.Debug("Updating safe", "safe", x.Ref, "unsafe", d.ec.UnsafeL2Head())
d.ec.SetSafeHead(x.Ref)
// Finalizer can pick up this safe cross-block now
Expand Down
Loading