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

fix(prover): fix maxRetry configuration when submitting proofs #364

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions prover/proof_submitter/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ func sendTxWithBackoff(

return nil
}, backOffPolicy); err != nil {
if maxRetry != nil {
log.Error("Failed to send TaikoL1.proveBlock transaction", "error", err, "maxRetry", *maxRetry)
return errUnretryable
}
return fmt.Errorf("failed to send TaikoL1.proveBlock transaction: %w", err)
}

Expand Down