Kademlia: Initial bucket refresh implementation. This might be improved down the road.

This commit is contained in:
Kleissner
2021-04-25 04:22:10 +02:00
parent 611dfa3b1c
commit f13695709f
7 changed files with 77 additions and 15 deletions

View File

@@ -98,7 +98,7 @@ func (peer *rootPeer) contact() {
contactArbitraryPeer(peer.publicKey, peer.addresses)
}
// bootstrap connects to the initial set of peers. It will also start the routine for ongoing sending of multicast/broadcast messages.
// bootstrap connects to the initial set of peers.
func bootstrap() {
if len(rootPeers) == 0 {
log.Printf("bootstrap warning: Empty list of root peers. Connectivity relies on local peer discovery and incoming connections.\n")