mirror of
https://github.com/Qortal/qortal.git
synced 2025-11-02 15:07:02 +00:00
shuffle hashes requested, so requesting peers don't all request the same hashes at the same time
This commit is contained in:
@@ -772,6 +772,8 @@ public class ArbitraryDataFileListManager {
|
||||
String ourAddress = Network.getInstance().getOurExternalIpAddressAndPort();
|
||||
ArbitraryDataFileListMessage arbitraryDataFileListMessage;
|
||||
|
||||
Collections.shuffle(hashes);
|
||||
|
||||
// Remove optional parameters if the requesting peer doesn't support it yet
|
||||
// A message with less statistical data is better than no message at all
|
||||
if (!peer.isAtLeastVersion(MIN_PEER_VERSION_FOR_FILE_LIST_STATS)) {
|
||||
|
||||
Reference in New Issue
Block a user