From b6cd4db1cffd15f95f383b2c5058d1c95d30d473 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 16 Aug 2023 10:48:30 +0800 Subject: [PATCH] fix(prover): fix `maxRetry` configuration when submitting proofs (#364) --- prover/proof_submitter/util.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prover/proof_submitter/util.go b/prover/proof_submitter/util.go index ac2f5cdd5..253befe30 100644 --- a/prover/proof_submitter/util.go +++ b/prover/proof_submitter/util.go @@ -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) }