Commit 62b33e6a authored by protolambda's avatar protolambda Committed by GitHub

op-node: fix l2_safe missing metrics line (#3327)

Co-authored-by: default avatarMatthew Slipper <me@matthewslipper.com>
parent 61e353e1
...@@ -303,6 +303,7 @@ func (eq *EngineQueue) consolidateNextSafeAttributes(ctx context.Context) error ...@@ -303,6 +303,7 @@ func (eq *EngineQueue) consolidateNextSafeAttributes(ctx context.Context) error
return NewResetError(fmt.Errorf("failed to decode L2 block ref from payload: %v", err)) return NewResetError(fmt.Errorf("failed to decode L2 block ref from payload: %v", err))
} }
eq.safeHead = ref eq.safeHead = ref
eq.metrics.RecordL2Ref("l2_safe", ref)
// unsafe head stays the same, we did not reorg the chain. // unsafe head stays the same, we did not reorg the chain.
eq.safeAttributes = eq.safeAttributes[1:] eq.safeAttributes = eq.safeAttributes[1:]
eq.postProcessSafeL2() eq.postProcessSafeL2()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment