core/txpool: opt with clear map

This commit is contained in:
cuiweixie 2025-08-15 18:54:04 +08:00
parent 88922d2bf5
commit 01127d5919

View file

@ -1200,7 +1200,7 @@ func (pool *LegacyPool) scheduleReorgLoop() {
launchNextRun = false
reset, dirtyAccounts = nil, nil
queuedEvents = make(map[common.Address]*SortedMap)
clear(queuedEvents)
}
select {