core: avoid double-lock in tx_pool_test (#20984)
This commit is contained in:
parent
234cc8e77f
commit
39c64d85a2
@ -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 New Issue
Block a user