mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-30 08:33:45 +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()
|
||||
|
||||
list, ok := pool.pending[addr]
|
||||
if !ok {
|
||||
return nil, nil
|
||||
if ok {
|
||||
pending = list.Flatten()
|
||||
}
|
||||
pending = list.Flatten()
|
||||
|
||||
list, ok = pool.queue[addr]
|
||||
if !ok {
|
||||
return nil, nil
|
||||
if ok {
|
||||
queued = list.Flatten()
|
||||
}
|
||||
queued = list.Flatten()
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue