Skip to content

Commit

Permalink
core: avoid double-lock in tx_pool_test (ethereum#20984)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurtonQin authored and enriquefynn committed Feb 15, 2021
1 parent df70e1c commit a9661a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tx_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func validateTxPoolInternals(pool *TxPool) error {
last = nonce
}
}
if nonce := pool.Nonce(addr); nonce != last+1 {
if nonce := pool.pendingNonces.get(addr); nonce != last+1 {
return fmt.Errorf("pending nonce mismatch: have %v, want %v", nonce, last+1)
}
}
Expand Down

0 comments on commit a9661a3

Please sign in to comment.