This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Description
At the moment both p2p package and Swarm hive protocol handle node discovery and connections to peers, which is problematic for a number of reasons.
We want to configure the p2p package to not connect to any random nodes, and handle connections to new peers from the Swarm Kademlia implementation and SuggestPeer functionality.
For this purpose we need to create a Swarm bootnode, which runs the hive protocol, so that Swarm Kademlia implementation can take of new connections to nodes.
At the moment the bootnode cmd does not run hive, so if we turn off random peer dialling in the p2p package, we end up with 0 peers in all Swarm nodes. However if random peer dialing is on we end up with full connectivity #1094