Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Aug 26, 2024
1 parent 090341b commit 7e81cec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/txmgr/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7e81cec

Please sign in to comment.