@@ -17,7 +17,6 @@ import (
1717 "scroll-tech/coordinator/internal/config"
1818 "scroll-tech/coordinator/internal/orm"
1919 coordinatorType "scroll-tech/coordinator/internal/types"
20- cutils "scroll-tech/coordinator/internal/utils"
2120
2221 "scroll-tech/common/types"
2322 "scroll-tech/common/types/message"
@@ -113,18 +112,18 @@ func (bp *BundleProverTask) Assign(ctx *gin.Context, getTaskParameter *coordinat
113112 }
114113
115114 // Don't dispatch the same failing job to the same prover
116- proverTasks , getTaskError := bp .proverTaskOrm .GetFailedProverTasksByHash (ctx .Copy (), message .ProofTypeBundle , tmpBundleTask .Hash , 2 )
117- if getTaskError != nil {
118- log .Error ("failed to get prover tasks" , "proof type" , message .ProofTypeBundle .String (), "task ID" , tmpBundleTask .Hash , "error" , getTaskError )
119- return nil , ErrCoordinatorInternalFailure
120- }
121- for i := 0 ; i < len (proverTasks ); i ++ {
122- if proverTasks [i ].ProverPublicKey == taskCtx .PublicKey ||
123- taskCtx .ProverProviderType == uint8 (coordinatorType .ProverProviderTypeExternal ) && cutils .IsExternalProverNameMatch (proverTasks [i ].ProverName , taskCtx .ProverName ) {
124- log .Debug ("get empty bundle, the prover already failed this task" , "height" , getTaskParameter .ProverHeight )
125- return nil , nil
126- }
127- }
115+ // proverTasks, getTaskError := bp.proverTaskOrm.GetFailedProverTasksByHash(ctx.Copy(), message.ProofTypeBundle, tmpBundleTask.Hash, 2)
116+ // if getTaskError != nil {
117+ // log.Error("failed to get prover tasks", "proof type", message.ProofTypeBundle.String(), "task ID", tmpBundleTask.Hash, "error", getTaskError)
118+ // return nil, ErrCoordinatorInternalFailure
119+ // }
120+ // for i := 0; i < len(proverTasks); i++ {
121+ // if proverTasks[i].ProverPublicKey == taskCtx.PublicKey ||
122+ // taskCtx.ProverProviderType == uint8(coordinatorType.ProverProviderTypeExternal) && cutils.IsExternalProverNameMatch(proverTasks[i].ProverName, taskCtx.ProverName) {
123+ // log.Debug("get empty bundle, the prover already failed this task", "height", getTaskParameter.ProverHeight)
124+ // return nil, nil
125+ // }
126+ // }
128127
129128 rowsAffected , updateAttemptsErr := bp .bundleOrm .UpdateBundleAttempts (ctx .Copy (), tmpBundleTask .Hash , tmpBundleTask .ActiveAttempts , tmpBundleTask .TotalAttempts )
130129 if updateAttemptsErr != nil {
0 commit comments