mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
core/txpool/legacypool: fix data race of pricedList access
This commit is contained in:
parent
341929ab96
commit
903ad5e3de
1 changed files with 1 additions and 1 deletions
|
|
@ -1934,7 +1934,7 @@ func (pool *LegacyPool) Clear() {
|
|||
pool.reserver.Release(addr)
|
||||
}
|
||||
pool.all.Clear()
|
||||
pool.priced = newPricedList(pool.all)
|
||||
pool.priced.Reheap()
|
||||
pool.pending = make(map[common.Address]*list)
|
||||
pool.queue = make(map[common.Address]*list)
|
||||
pool.pendingNonces = newNoncer(pool.currentState)
|
||||
|
|
|
|||
Loading…
Reference in a new issue