Skip to content

Commit

Permalink
op-node: Follow convention for backup unsafe head metric
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed Jan 15, 2024
1 parent 6a5296d commit bd08911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion op-node/rollup/derive/engine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (e *EngineController) SetUnsafeHead(r eth.L2BlockRef) {

// SetBackupUnsafeL2Head implements LocalEngineControl.
func (e *EngineController) SetBackupUnsafeL2Head(r eth.L2BlockRef, triggerReorg bool) {
e.metrics.RecordL2Ref("l2_backupUnsafe", r)
e.metrics.RecordL2Ref("l2_backup_unsafe", r)
e.backupUnsafeHead = r
e.needFCUCallForBackupUnsafeReorg = triggerReorg
}
Expand Down
2 changes: 1 addition & 1 deletion op-node/rollup/derive/engine_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (eq *EngineQueue) logSyncProgress(reason string) {
"l2_safe", eq.ec.SafeL2Head(),
"l2_safe_pending", eq.ec.PendingSafeL2Head(),
"l2_unsafe", eq.ec.UnsafeL2Head(),
"l2_backupUnsafe", eq.ec.BackupUnsafeL2Head(),
"l2_backup_unsafe", eq.ec.BackupUnsafeL2Head(),
"l2_time", eq.ec.UnsafeL2Head().Time,
"l1_derived", eq.origin,
)
Expand Down

0 comments on commit bd08911

Please sign in to comment.