ethereum/trinity

Prune peer block tracker in NewBlockComponent

njgheorghita opened this issue · 0 comments

What is wrong?

https://github.com/ethereum/trinity/pull/2058/files#r501436183

The peer_block_tracker in a NewBlockComponent, which is responsible for tracking which peers have seen a block (either by sending us a NewBlock message, or we send them a NewBlockHashes message), currently grows indefinitely.

How can it be fixed

A mechanism is required to prune outdated blocks to avoid unbounded growth.