Skip to content

Commit

Permalink
Add metrics.SetL1SyncHeight for every batch log (#378)
Browse files Browse the repository at this point in the history
Co-authored-by: corey <curryx1992@gmail.com>
  • Loading branch information
github-actions[bot] and curryxbo authored Jun 18, 2024
1 parent 2e6f8f6 commit c5d7e1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node/derivation/derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (d *Derivation) derivationBlock(ctx context.Context) {
} else {
d.metrics.SetBatchStatus(stateNormal)
}
d.metrics.SetL1SyncHeight(lg.BlockNumber)
}

d.db.WriteLatestDerivationL1Height(end)
Expand Down

0 comments on commit c5d7e1f

Please sign in to comment.