Update legacypool.go

This commit is contained in:
rjl493456442 2025-04-17 10:35:41 +08:00 committed by GitHub
parent 847532f287
commit d5d1ec391a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1827,6 +1827,7 @@ func (t *lookup) Remove(hash common.Hash) {
delete(t.txs, hash) delete(t.txs, hash)
} }
// Clear resets the lookup structure, removing all stored entries.
func (t *lookup) Clear() { func (t *lookup) Clear() {
t.lock.Lock() t.lock.Lock()
defer t.lock.Unlock() defer t.lock.Unlock()