1
0
Fork 0
forked from forks/go-ethereum

core/txpool/legacypool: fix data race of pricedList access (#31758)

This commit is contained in:
Miro 2025-05-03 22:16:33 -04:00 committed by GitHub
parent 8868ad6d6e
commit 2d86a54000
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)