forgetBlock removes all traces of a queued block from the fetcher's internal state.
(hash common.Hash)
| 735 | // forgetBlock removes all traces of a queued block from the fetcher's internal |
| 736 | // state. |
| 737 | func (f *Fetcher) forgetBlock(hash common.Hash) { |
| 738 | if insert := f.queued[hash]; insert != nil { |
| 739 | f.queues[insert.origin]-- |
| 740 | if f.queues[insert.origin] == 0 { |
| 741 | delete(f.queues, insert.origin) |
| 742 | } |
| 743 | delete(f.queued, hash) |
| 744 | } |
| 745 | } |