Random is the default choice; rarestFirst didn't work well in

experiments.
This commit is contained in:
Mosharaf Chowdhury 2011-03-29 13:06:43 -07:00
parent 0416cc22d2
commit 73b165220d

View file

@ -444,7 +444,7 @@ extends Broadcast[T] with Logging {
threadPool.getActiveCount
while (hasBlocks < totalBlocks && numThreadsToCreate > 0) {
var peerToTalkTo = pickPeerToTalkToRarestFirst
var peerToTalkTo = pickPeerToTalkToRandom
if (peerToTalkTo != null)
logInfo ("Peer chosen: " + peerToTalkTo + " with " + peerToTalkTo.hasBlocksBitVector)