Skip to content

Commit 6fb82ca

Browse files
committed
Comments
1 parent 77b0423 commit 6fb82ca

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
@@ -215,6 +215,10 @@ func (l *BatchSubmitter) StartBatchSubmitting() error {
215215
l.espressoSubmitter.SpawnWorkers(4, 4)
216216
l.espressoSubmitter.Start()
217217

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

220224
l.wg.Add(4)
@@ -531,7 +535,7 @@ func (l *BatchSubmitter) publishingLoop(ctx context.Context, wg *sync.WaitGroup,
531535
}
532536

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

0 commit comments

Comments
 (0)