Skip to content

Commit

Permalink
op-batcher: Always use recent block from startup tx check (#10273)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianst committed Apr 23, 2024
1 parent e038117 commit 24a8d3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions op-batcher/batcher/driver.go
Expand Up @@ -355,11 +355,11 @@ func (l *BatchSubmitter) waitNodeSync() error {
l.Log.Info("Checking for recently submitted batcher transactions on L1")
recentBlock, found, err := eth.CheckRecentTxs(ctx, l.L1Client, l.Config.CheckRecentTxsDepth, l.Txmgr.From())
if err != nil {
return fmt.Errorf("failed when checking recent batcher txs: %w", err)
}
if found {
l1TargetBlock = recentBlock
return fmt.Errorf("failed checking recent batcher txs: %w", err)
}
l.Log.Info("Checked for recently submitted batcher transactions on L1",
"l1_head", l1Tip, "l1_recent", recentBlock, "found", found)
l1TargetBlock = recentBlock
}

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

0 comments on commit 24a8d3e

Please sign in to comment.