Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 committed Sep 30, 2024
1 parent fc667be commit 9c2271c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/taiko-client/prover/proof_producer/sgx_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,13 @@ func (s *SGXProofProducer) requestBatchProof(
return nil, fmt.Errorf("failed to get batch proof, msg: %s", output.ErrorMessage)
}

if output.Data.Status == ErrProofInProgress.Error() {
return nil, ErrProofInProgress
}
if output.Data.Status == StatusRegistered {
return nil, ErrRetry
}

if len(output.Data.Proof.Proof) == 0 {
return nil, errEmptyProof
}
Expand Down
6 changes: 6 additions & 0 deletions packages/taiko-client/prover/proof_producer/zkvm_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ func (s *ZKvmProofProducer) requestBatchProof(
if len(output.ErrorMessage) > 0 {
return nil, fmt.Errorf("failed to get batch proof, msg: %s", output.ErrorMessage)
}
if output.Data.Status == ErrProofInProgress.Error() {
return nil, ErrProofInProgress
}
if output.Data.Status == StatusRegistered {
return nil, ErrRetry
}

if len(output.Data.Proof.Proof) == 0 {
return nil, errEmptyProof
Expand Down

0 comments on commit 9c2271c

Please sign in to comment.