mapa17 / Eruliaf

A BitTorrent like overlay peer simulator
GNU General Public License v3.0
1 stars 0 forks source link

Add sleep time to node startup #57

Closed mapa17 closed 12 years ago

mapa17 commented 12 years ago

During the static simulations the PeerC1 algorithm performs really bad because of the indirect synchronization of nodes.

In order to counter balance this simulation specific problem, define a sleep time at creation time of a node, and the node will wait X number of ticks before actively participating in the swarm.

The sleep should be done in the PeerLogic, as in order to work with other peers the connection object has to work.