Skip to content

Commit

Permalink
do not delete proofs (0xPolygonHermez#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM authored Oct 14, 2022
1 parent a480ece commit 2699f1c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ func (a *Aggregator) tryToSendVerifiedBatch(ctx context.Context, ticker *time.Ti
log.Infof("sending verified proof to the ethereum smart contract, batchNumber %d", batchNumberToVerify)
a.EthTxManager.VerifyBatch(batchNumberToVerify, proof)
log.Infof("proof for the batch was sent, batchNumber: %v", batchNumberToVerify)
err := a.State.DeleteGeneratedProof(ctx, batchNumberToVerify, nil)
if err != nil {
log.Warnf("failed to delete generated proof for batchNumber %v, err: %v", batchNumberToVerify, err)
return
}
/*
err := a.State.DeleteGeneratedProof(ctx, batchNumberToVerify, nil)
if err != nil {
log.Warnf("failed to delete generated proof for batchNumber %v, err: %v", batchNumberToVerify, err)
return
}
*/
} else {
log.Debugf("no generated proof for batchNumber %v has been found", batchNumberToVerify)
waitTick(ctx, ticker)
Expand Down

0 comments on commit 2699f1c

Please sign in to comment.