From a4c86630cf87991c9d7515c0968fcc07e1d49e2b Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 13 Aug 2018 15:07:14 -0500 Subject: [PATCH] reduced peer score minimum, blacklist peers --- onionr/onionrpeers.py | 1 + onionr/static-data/default_config.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/onionr/onionrpeers.py b/onionr/onionrpeers.py index 2762277c..a146a17c 100644 --- a/onionr/onionrpeers.py +++ b/onionr/onionrpeers.py @@ -89,4 +89,5 @@ def peerCleanup(coreInst): # Remove peers that go below the negative score if PeerProfiles(address, coreInst).score < minScore: coreInst.removeAddress(address) + coreInst._blacklist.addToDB(address) logger.warn('Removed address ' + address + '.') \ No newline at end of file diff --git a/onionr/static-data/default_config.json b/onionr/static-data/default_config.json index 81ba610f..c298c137 100644 --- a/onionr/static-data/default_config.json +++ b/onionr/static-data/default_config.json @@ -53,11 +53,11 @@ "allocations":{ "disk": 9000000000, "netTotal": 1000000000, - "blockCache" : 5000000, - "blockCacheTotal" : 50000000 + "blockCache": 5000000, + "blockCacheTotal": 50000000 }, "peers":{ - "minimumScore": -4000, + "minimumScore": -1000, "maxStoredPeers": 100, "maxConnect": 3 }