Less reputation for onion peers

This commit is contained in:
shortcutme 2018-09-02 02:26:42 +02:00
parent 7dcde3e585
commit 1b0055ac61
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class ContentDbPlugin(object):
peer.time_found = row["time_found"]
peer.reputation = row["reputation"]
if row["address"].endswith(".onion"):
peer.reputation = peer.reputation / 2 # Onion peers less likely working
peer.reputation = peer.reputation / 2 - 1 # Onion peers less likely working
num += 1
if num_hashfield:
site.content_manager.has_optional_files = True