mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 04:26:37 +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
|
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)
|
return fmt.Errorf("pending nonce mismatch: have %v, want %v", nonce, last+1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue