mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-13 15:33:47 +00:00
fix ContentByAccount pending and queued
This commit is contained in:
parent
23cf9324cc
commit
93ecc6e93c
1 changed files with 4 additions and 6 deletions
|
|
@ -489,16 +489,14 @@ func (pool *TxPool) ContentByAccount(addr common.Address) (pending, queued types
|
||||||
defer pool.mu.Unlock()
|
defer pool.mu.Unlock()
|
||||||
|
|
||||||
list, ok := pool.pending[addr]
|
list, ok := pool.pending[addr]
|
||||||
if !ok {
|
if ok {
|
||||||
return nil, nil
|
pending = list.Flatten()
|
||||||
}
|
}
|
||||||
pending = list.Flatten()
|
|
||||||
|
|
||||||
list, ok = pool.queue[addr]
|
list, ok = pool.queue[addr]
|
||||||
if !ok {
|
if ok {
|
||||||
return nil, nil
|
queued = list.Flatten()
|
||||||
}
|
}
|
||||||
queued = list.Flatten()
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue