From 0e91784615b0283e442d9aab24b58ac72bdb3cfd Mon Sep 17 00:00:00 2001 From: sudeep Date: Thu, 9 Nov 2023 10:18:29 +0530 Subject: [PATCH] remove tx fee params setting before recursively calling executeWithRetry - the setting already happens at function entry, and is therefore redundant to do before recursively calling it. --- internal/proof/proof.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/proof/proof.go b/internal/proof/proof.go index a4f35af9..20bdf8fa 100644 --- a/internal/proof/proof.go +++ b/internal/proof/proof.go @@ -165,8 +165,7 @@ func executeWithRetry(ctx context.Context, interactor *ProofchainInteractor, pro return } log.Error("proof tx failed/reverted, retrying proof tx for block hash: ", blockReplica.Hash.String()) - newFeeOpts := interactor.setTransactionFeeParams(ctx, opts) - executeWithRetry(ctx, interactor, proofChainContract, ethClient, newFeeOpts, blockReplica, txHash, chainHeight, replicaURL, sha256Result, retryCount+1) + executeWithRetry(ctx, interactor, proofChainContract, ethClient, opts, blockReplica, txHash, chainHeight, replicaURL, sha256Result, retryCount+1) return }