diff --git a/plugins/PeerDb/PeerDbPlugin.py b/plugins/PeerDb/PeerDbPlugin.py index c7a1e073..858b22ea 100644 --- a/plugins/PeerDb/PeerDbPlugin.py +++ b/plugins/PeerDb/PeerDbPlugin.py @@ -46,7 +46,9 @@ class ContentDbPlugin(object): peer.hashfield.replaceFromString(row["hashfield"]) num_hashfield += 1 peer.time_added = row["time_added"] - peer.reputation = int((time.time() - peer.time_added) / (60 * 60 * 24)) # Older peers has more reputation + peer.reputation = int((time.time() - peer.time_added) / (60 * 60 * 24)) # Boost reputation for older peers + if row["address"].endswith(".onion"): + peer.reputation = peer.reputation / 2 # Onion peers less likely working num += 1 site.log.debug("%s peers (%s with hashfield) loaded in %.3fs" % (num, num_hashfield, time.time() - s))