We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97de988 commit 5f29e22Copy full SHA for 5f29e22
rollup/internal/controller/relayer/l2_relayer.go
@@ -327,6 +327,11 @@ func (r *Layer2Relayer) ProcessPendingBatches() {
327
return
328
}
329
330
+ // nothing to do if we don't have any pending batches
331
+ if len(dbBatches) == 0 {
332
+ return
333
+ }
334
+
335
// if backlog outgrow max size, force‐submit enough oldest batches
336
backlogCount, err := r.batchOrm.GetFailedAndPendingBatchesCount(r.ctx)
337
if err != nil {
0 commit comments