Description
p2p connection management is currently very basic; connections are limited to 100 peers, and idle connections do not timeout. ideally we have better connection management. for instance, as a worker we want to have x number of peers which are also workers, y number which are validators, etc. we also want to allow new nodes to join, while also favouring nodes which we have been connected to for a while and have established. we need to design what exactly we want each node's connections to ideally look like, and then implement that.