mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
eth/fetcher: clear partial map when dropping last waitlist peer (#35399)
When a peer drop removes the last waiter for a hash, waitlist and waittime were cleaned up but partial could retain a stale entry. Delete it too so the hash is fully forgotten.
This commit is contained in:
parent
81ab8b594e
commit
e317407d16
1 changed files with 1 additions and 0 deletions
|
|
@ -615,6 +615,7 @@ func (f *BlobFetcher) loop() {
|
|||
if len(f.waitlist[hash]) == 0 {
|
||||
delete(f.waitlist, hash)
|
||||
delete(f.waittime, hash)
|
||||
delete(f.partial, hash)
|
||||
}
|
||||
}
|
||||
delete(f.waitslots, drop.peer)
|
||||
|
|
|
|||
Loading…
Reference in a new issue