reduced peer score minimum, blacklist peers

master
Kevin Froman 2018-08-13 15:07:14 -05:00
parent aab7d4296f
commit a4c86630cf
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
2 changed files with 4 additions and 3 deletions

View File

@ -89,4 +89,5 @@ def peerCleanup(coreInst):
# Remove peers that go below the negative score # Remove peers that go below the negative score
if PeerProfiles(address, coreInst).score < minScore: if PeerProfiles(address, coreInst).score < minScore:
coreInst.removeAddress(address) coreInst.removeAddress(address)
coreInst._blacklist.addToDB(address)
logger.warn('Removed address ' + address + '.') logger.warn('Removed address ' + address + '.')

View File

@ -53,11 +53,11 @@
"allocations":{ "allocations":{
"disk": 9000000000, "disk": 9000000000,
"netTotal": 1000000000, "netTotal": 1000000000,
"blockCache" : 5000000, "blockCache": 5000000,
"blockCacheTotal" : 50000000 "blockCacheTotal": 50000000
}, },
"peers":{ "peers":{
"minimumScore": -4000, "minimumScore": -1000,
"maxStoredPeers": 100, "maxStoredPeers": 100,
"maxConnect": 3 "maxConnect": 3
} }