mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core/txpool/legacypool: fix data race of pricedList access (#31758)
This commit is contained in:
parent
8868ad6d6e
commit
2d86a54000
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