mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Update legacypool.go
This commit is contained in:
parent
847532f287
commit
d5d1ec391a
1 changed files with 1 additions and 0 deletions
|
|
@ -1827,6 +1827,7 @@ func (t *lookup) Remove(hash common.Hash) {
|
|||
delete(t.txs, hash)
|
||||
}
|
||||
|
||||
// Clear resets the lookup structure, removing all stored entries.
|
||||
func (t *lookup) Clear() {
|
||||
t.lock.Lock()
|
||||
defer t.lock.Unlock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue