@@ -559,22 +559,22 @@ func (l *L2OutputSubmitter) loopL2OO(ctx context.Context) {
559
559
for {
560
560
select {
561
561
case <- ticker .C :
562
- // 1) Queue up any span batches that are ready to prove.
563
- // This is done by checking the chain for completed channels and pulling span batches out.
564
- // We break apart span batches if they exceed the max size, and gracefully handle bugs in span batch decoding.
565
- // We add ranges to be proven to the DB as "UNREQ" so they are queued up to request later.
566
- l .Log .Info ("Stage 1: Deriving Span Batches..." )
567
- err := l .DeriveNewSpanBatches (ctx )
568
- if err != nil {
569
- l .Log .Error ("failed to add next span batches to db" , "err" , err )
570
- continue
571
- }
562
+ // // 1) Queue up any span batches that are ready to prove.
563
+ // // This is done by checking the chain for completed channels and pulling span batches out.
564
+ // // We break apart span batches if they exceed the max size, and gracefully handle bugs in span batch decoding.
565
+ // // We add ranges to be proven to the DB as "UNREQ" so they are queued up to request later.
566
+ // l.Log.Info("Stage 1: Deriving Span Batches...")
567
+ // err := l.DeriveNewSpanBatches(ctx)
568
+ // if err != nil {
569
+ // l.Log.Error("failed to add next span batches to db", "err", err)
570
+ // continue
571
+ // }
572
572
573
573
// 2) Check the statuses of all requested proofs.
574
574
// If it's successfully returned, we validate that we have it on disk and set status = "COMPLETE".
575
575
// If it fails or times out, we set status = "FAILED" (and, if it's a span proof, split the request in half to try again).
576
576
l .Log .Info ("Stage 2: Processing Pending Proofs..." )
577
- err = l .ProcessPendingProofs ()
577
+ err : = l .ProcessPendingProofs ()
578
578
if err != nil {
579
579
l .Log .Error ("failed to update requested proofs" , "err" , err )
580
580
continue
@@ -590,24 +590,24 @@ func (l *L2OutputSubmitter) loopL2OO(ctx context.Context) {
590
590
continue
591
591
}
592
592
593
- // 4) Request all unrequested proofs from the prover network.
594
- // Any DB entry with status = "UNREQ" means it's queued up and ready.
595
- // We request all of these (both span and agg) from the prover network.
596
- // For agg proofs, we also checkpoint the blockhash in advance.
597
- l .Log .Info ("Stage 4: Requesting Queued Proofs..." )
598
- err = l .RequestQueuedProofs (ctx )
599
- if err != nil {
600
- l .Log .Error ("failed to request unrequested proofs" , "err" , err )
601
- continue
602
- }
603
-
604
- // 5) Submit agg proofs on chain.
605
- // If we have a completed agg proof waiting in the DB, we submit them on chain.
606
- l .Log .Info ("Stage 5: Submitting Agg Proofs..." )
607
- err = l .SubmitAggProofs (ctx )
608
- if err != nil {
609
- l .Log .Error ("failed to submit agg proofs" , "err" , err )
610
- }
593
+ // // 4) Request all unrequested proofs from the prover network.
594
+ // // Any DB entry with status = "UNREQ" means it's queued up and ready.
595
+ // // We request all of these (both span and agg) from the prover network.
596
+ // // For agg proofs, we also checkpoint the blockhash in advance.
597
+ // l.Log.Info("Stage 4: Requesting Queued Proofs...")
598
+ // err = l.RequestQueuedProofs(ctx)
599
+ // if err != nil {
600
+ // l.Log.Error("failed to request unrequested proofs", "err", err)
601
+ // continue
602
+ // }
603
+
604
+ // // 5) Submit agg proofs on chain.
605
+ // // If we have a completed agg proof waiting in the DB, we submit them on chain.
606
+ // l.Log.Info("Stage 5: Submitting Agg Proofs...")
607
+ // err = l.SubmitAggProofs(ctx)
608
+ // if err != nil {
609
+ // l.Log.Error("failed to submit agg proofs", "err", err)
610
+ // }
611
611
case <- l .done :
612
612
return
613
613
}
0 commit comments