mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
core/txpool/legacypool: address comments from matt
This commit is contained in:
parent
847f621e41
commit
2659e4a0e9
1 changed files with 2 additions and 4 deletions
|
|
@ -628,11 +628,9 @@ func (pool *LegacyPool) validateAuth(tx *types.Transaction) error {
|
||||||
queue := pool.queue[from]
|
queue := pool.queue[from]
|
||||||
if queue != nil {
|
if queue != nil {
|
||||||
count += queue.Len()
|
count += queue.Len()
|
||||||
if !exists {
|
exists = exists || queue.Contains(tx.Nonce())
|
||||||
exists = queue.Contains(tx.Nonce())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Replace the existing inflight transaction for delegated accounts
|
// Replace the existing in-flight transaction for delegated accounts
|
||||||
// are still supported
|
// are still supported
|
||||||
if count >= 1 && !exists {
|
if count >= 1 && !exists {
|
||||||
return ErrInflightTxLimitReached
|
return ErrInflightTxLimitReached
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue