From 55ca0d1445b3a394f424d0bf315b3b1defa4c37e Mon Sep 17 00:00:00 2001 From: zelig Date: Wed, 14 Jan 2015 15:49:30 +0000 Subject: [PATCH] add the hive = peer pool --- bzz/hive.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bzz/hive.go diff --git a/bzz/hive.go b/bzz/hive.go new file mode 100644 index 0000000000..544514da9e --- /dev/null +++ b/bzz/hive.go @@ -0,0 +1,9 @@ +package bzz + +import () + +/* +Hive is the logistic manager at swarm +It is based on kademlia wisdom and flexible forwarding policies for optimal network health. +Hive implements the PeerPool interface (Thx fjl) and as such plays a role in how peers are selected by the p2p server. Ideally the p2p server regularly polls the registered protocol peer pools for good peers (an ordered wishlist of peers to connect to) and chooses the best one not connected. The Bzz Hive is therefore keeping a persistent record of peers for reputation and proximity considerations (or any other indirect incentive maybe). +*/