Skip to content

Commit fa9fab6

Browse files
jonastheisThegaram
andauthored
fix(relayer): ProcessPendingBatches (#1661)
Co-authored-by: jonastheis <[email protected]> Co-authored-by: Péter Garamvölgyi <[email protected]>
1 parent c4f869a commit fa9fab6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

common/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime/debug"
66
)
77

8-
var tag = "v4.5.14"
8+
var tag = "v4.5.15"
99

1010
var commit = func() string {
1111
if info, ok := debug.ReadBuildInfo(); ok {

rollup/internal/controller/relayer/l2_relayer.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ func (r *Layer2Relayer) ProcessPendingBatches() {
319319
return
320320
}
321321

322+
// nothing to do if we don't have any pending batches
323+
if len(dbBatches) == 0 {
324+
return
325+
}
326+
322327
// if backlog outgrow max size, force‐submit enough oldest batches
323328
backlogCount, err := r.batchOrm.GetFailedAndPendingBatchesCount(r.ctx)
324329
if err != nil {

0 commit comments

Comments
 (0)