Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Aug 29, 2024
1 parent 2badc93 commit d6e780b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/txmgr/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,11 @@ func (eb *Broadcaster[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, SEQ, FEE]) hand
return err, true
case client.Underpriced:
bumpedAttempt, newErr := eb.replaceAttemptWithBumpedGas(ctx, lgr, err, etx, attempt)
lgr.Debugf("%v, failed to create bumped attempt, %v", err, newErr)
if newErr != nil {
err = fmt.Errorf("%v, failed to create bumped attempt, %v", err, newErr)
return err, true
}

return eb.handleInProgressTx(ctx, etx, bumpedAttempt, initialBroadcastAt, retryCount+1)
case client.InsufficientFunds:
// NOTE: This can occur due to either insufficient funds or a gas spike
Expand Down

0 comments on commit d6e780b

Please sign in to comment.