Only return small number of peers if no new site added by the peer
This commit is contained in:
parent
b7a66295f6
commit
a7adb517ca
1 changed files with 1 additions and 2 deletions
|
@ -84,7 +84,7 @@ class FileRequestPlugin(object):
|
|||
if params.get("onions") and not all_onions_signed and hashes_changed:
|
||||
back["onion_sign_this"] = "%.0f" % time.time() # Send back nonce for signing
|
||||
|
||||
if len(hashes) > 500:
|
||||
if len(hashes) > 500 or not hashes_changed:
|
||||
limit = 5
|
||||
order = False
|
||||
else:
|
||||
|
@ -103,7 +103,6 @@ class FileRequestPlugin(object):
|
|||
peers.append(hash_peers)
|
||||
time_peerlist = time.time() - s
|
||||
|
||||
|
||||
back["peers"] = peers
|
||||
self.connection.log(
|
||||
"Announce %s sites (onions: %s, onion_check: %.3fs, db_onion: %.3fs, db_ip4: %.3fs, peerlist: %.3fs)" %
|
||||
|
|
Loading…
Reference in a new issue