mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 18:35:03 +00:00
core: avoid double-lock in tx_pool_test (#20984)
This commit is contained in:
parent
234cc8e77f
commit
39c64d85a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue