Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Nil pointer error in TXM stuck tx detector #14685

Merged
merged 15 commits into from
Oct 9, 2024
Prev Previous commit
Next Next commit
remove comment
  • Loading branch information
huangzhen1997 committed Oct 8, 2024
commit 1a13a56e290a64e68be04be340cbda9d5ecc1e47
2 changes: 1 addition & 1 deletion core/chains/evm/txmgr/stuck_tx_detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func compareGasFees(attemptGas gas.EvmFee, marketGas gas.EvmFee) int {
func findBroadcastedAttempts(tx Tx) (oldestAttempt *TxAttempt, newestAttempt *TxAttempt, broadcastedCount uint32) {
foundNewest := false
for i := range tx.TxAttempts {
attempt := tx.TxAttempts[i] // Create a new variable for each loop iteration
attempt := tx.TxAttempts[i]
if attempt.State != types.TxAttemptBroadcast {
continue
}
Expand Down
Loading