Skip to content

Commit 431df26

Browse files
mirokuratczyk0g-wh
authored andcommitted
core/txpool/legacypool: fix data race of pricedList access (ethereum#31758)
1 parent 37691b1 commit 431df26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/txpool/legacypool/legacypool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ func (pool *LegacyPool) Clear() {
19341934
pool.reserver.Release(addr)
19351935
}
19361936
pool.all.Clear()
1937-
pool.priced = newPricedList(pool.all)
1937+
pool.priced.Reheap()
19381938
pool.pending = make(map[common.Address]*list)
19391939
pool.queue = make(map[common.Address]*list)
19401940
pool.pendingNonces = newNoncer(pool.currentState)

0 commit comments

Comments
 (0)