Skip to content

Commit

Permalink
fix error check (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM authored Aug 12, 2024
1 parent 160c58e commit 33f9242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ func (a *Aggregator) tryGenerateBatchProof(ctx context.Context, prover proverInt
log.Debug("tryGenerateBatchProof start")

batchToProve, witness, proof, err0 := a.getAndLockBatchToProve(ctx, prover)
if errors.Is(err0, state.ErrNotFound) {
if errors.Is(err0, state.ErrNotFound) || errors.Is(err0, entities.ErrNotFound) {
// nothing to proof, swallow the error
log.Debug("Nothing to generate proof")
return false, nil
Expand Down

0 comments on commit 33f9242

Please sign in to comment.