Increase peer reputation when found by tracker

This commit is contained in:
shortcutme 2018-09-02 02:22:35 +02:00
parent 49562d43c3
commit 658aace8f1
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 2 deletions

View File

@ -125,9 +125,9 @@ class Peer(object):
# Found a peer from a source
def found(self, source="other"):
if source == "tracker":
self.reputation += 10
self.reputation += 1
elif source == "local":
self.reputation += 30
self.reputation += 3
if source in ("tracker", "local"):
self.site.peers_recent.appendleft(self)
self.time_found = time.time()