From fae3089689c852e0301c353307691f9eeba64946 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 15 Aug 2023 23:26:24 +0800 Subject: [PATCH] fix(prover): fix `maxRetry` configuration when submitting proofs --- 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) }