Skip to content

Commit 12d1d70

Browse files
committed
Comments
1 parent b008c06 commit 12d1d70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

op-batcher/batcher/driver.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ func (l *BatchSubmitter) StartBatchSubmitting() error {
213213
l.espressoSubmitter.SpawnWorkers(4, 4)
214214
l.espressoSubmitter.Start()
215215

216+
// Limit teeAuthGroup to at most 128 concurrent goroutines as an arbitrary
217+
// not-too-big limit for the number of BatchInbox transactions that can be
218+
// simultaneously waiting for corresponding BatchAuthenticator transaction to be
219+
// confirmed before submission to L1.
216220
l.teeAuthGroup.SetLimit(128)
217221

218222
l.wg.Add(4)
@@ -529,7 +533,7 @@ func (l *BatchSubmitter) publishingLoop(ctx context.Context, wg *sync.WaitGroup,
529533
}
530534

531535
// Wait for all transactions requiring TEE authentication to complete to prevent new
532-
// transactions being quieued
536+
// transactions being queued
533537
if err := l.teeAuthGroup.Wait(); err != nil {
534538
if !errors.Is(err, context.Canceled) {
535539
l.Log.Error("error waiting for transaction authentication requests to complete", "err", err)

0 commit comments

Comments
 (0)