Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
dont need to check neednewproof
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jun 30, 2023
1 parent bf8640d commit a4a780d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions prover/proof_submitter/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,6 @@ func sendTxWithBackoff(
return nil
}

// Check if this proof is still needed at first.
needNewProof, err := rpc.NeedNewProof(ctx, cli, blockID, common.Address{})
if err != nil {
log.Warn(
"Failed to check if the generated proof is needed",
"blockID", blockID,
"error", err,
)
return err
}

if !needNewProof {
log.Info("Proof was submitted another prover, skip the current proof submission", "blockID", blockID)
return nil
}

tx, err := sendTxFunc()
if err != nil {
err = encoding.TryParsingCustomError(err)
Expand Down

0 comments on commit a4a780d

Please sign in to comment.