File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
rollup/rollup_sync_service Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const (
45
45
)
46
46
47
47
var (
48
- finalizedBlockGauge = metrics .NewRegisteredGauge ("chain/head/finalized" , nil )
48
+ finalizedBlockGauge = metrics .NewRegisteredGauge ("chain/head/finalized" , nil )
49
49
ErrShouldResetSyncHeight = errors .New ("ErrShouldResetSyncHeight" )
50
50
)
51
51
@@ -139,13 +139,11 @@ func (s *RollupSyncService) Start() {
139
139
140
140
log .Info ("Starting rollup event sync background service" , "latest processed block" , s .callDataBlobSource .L1Height ())
141
141
142
-
143
-
144
142
finalizedBlockHeightPtr := rawdb .ReadFinalizedL2BlockNumber (s .db )
145
143
if finalizedBlockHeightPtr != nil {
146
144
finalizedBlockGauge .Update (int64 (* finalizedBlockHeightPtr ))
147
145
}
148
-
146
+
149
147
go func () {
150
148
syncTicker := time .NewTicker (defaultSyncInterval )
151
149
defer syncTicker .Stop ()
You can’t perform that action at this time.
0 commit comments