Random is the default choice; rarestFirst didn't work well in
experiments.
This commit is contained in:
parent
0416cc22d2
commit
73b165220d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue