From 7e81cec026f5308e8ec5988e6037032efab66c6f Mon Sep 17 00:00:00 2001 From: Joe Huang Date: Mon, 26 Aug 2024 09:53:45 -0500 Subject: [PATCH] add comment --- common/txmgr/broadcaster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/txmgr/broadcaster.go b/common/txmgr/broadcaster.go index cdaafe8897b..ba441cc61cc 100644 --- a/common/txmgr/broadcaster.go +++ b/common/txmgr/broadcaster.go @@ -560,6 +560,7 @@ func (eb *Broadcaster[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, SEQ, FEE]) hand case client.Underpriced: return eb.tryAgainBumpingGas(ctx, lgr, err, etx, attempt, initialBroadcastAt, retryCount+1) case client.InsufficientFunds: + // NOTE: Replacing existing attempt with a new gas estimation to overcome the occasional gas spike eb.SvcErrBuffer.Append(err) return eb.tryAgainWithNewEstimation(ctx, lgr, err, etx, attempt, initialBroadcastAt) case client.Retryable: