Skip to content

Commit

Permalink
upgrad4-test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehao committed Jul 12, 2024
1 parent 2392d34 commit fc47cef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/cmd/rollup_relayer/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func action(ctx *cli.Context) error {

go utils.Loop(subCtx, 2*time.Second, l2relayer.ProcessPendingBatches)

go utils.Loop(subCtx, 15*time.Second, l2relayer.ProcessCommittedBatches)
go utils.Loop(subCtx, 15*time.Second, l2relayer.ProcessPendingBundles)

// Finish start all rollup relayer functions.
log.Info("Start rollup-relayer successfully", "version", version.Version)
Expand Down
6 changes: 6 additions & 0 deletions rollup/internal/controller/relayer/l2_relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ func (r *Layer2Relayer) ProcessPendingBundles() {
}
}

if bundle.EndBatchIndex < 274315 {
if err := r.finalizeBundle(bundle, false); err != nil {
log.Error("Failed to finalize timeout bundle without proof", "index", bundle.Index, "start batch index", bundle.StartBatchIndex, "end batch index", bundle.EndBatchIndex, "err", err)
}
}

case types.ProvingTaskVerified:
log.Info("Start to roll up zk proof", "hash", bundle.Hash)
r.metrics.rollupL2RelayerProcessPendingBundlesFinalizedTotal.Inc()
Expand Down

0 comments on commit fc47cef

Please sign in to comment.