mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
add the hive = peer pool
This commit is contained in:
parent
7f6cac947a
commit
55ca0d1445
1 changed files with 9 additions and 0 deletions
9
bzz/hive.go
Normal file
9
bzz/hive.go
Normal file
|
|
@ -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).
|
||||||
|
*/
|
||||||
Loading…
Reference in a new issue