Skip to content

Commit 24a8d3e

Browse files
authored
op-batcher: Always use recent block from startup tx check (#10273)
1 parent e038117 commit 24a8d3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

op-batcher/batcher/driver.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@ func (l *BatchSubmitter) waitNodeSync() error {
355355
l.Log.Info("Checking for recently submitted batcher transactions on L1")
356356
recentBlock, found, err := eth.CheckRecentTxs(ctx, l.L1Client, l.Config.CheckRecentTxsDepth, l.Txmgr.From())
357357
if err != nil {
358-
return fmt.Errorf("failed when checking recent batcher txs: %w", err)
359-
}
360-
if found {
361-
l1TargetBlock = recentBlock
358+
return fmt.Errorf("failed checking recent batcher txs: %w", err)
362359
}
360+
l.Log.Info("Checked for recently submitted batcher transactions on L1",
361+
"l1_head", l1Tip, "l1_recent", recentBlock, "found", found)
362+
l1TargetBlock = recentBlock
363363
}
364364

365365
return dial.WaitRollupSync(l.shutdownCtx, l.Log, rollupClient, l1TargetBlock, time.Second*12)

0 commit comments

Comments
 (0)