reduced peer score minimum, blacklist peers
This commit is contained in:
parent
aab7d4296f
commit
a4c86630cf
@ -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 + '.')
|
@ -57,7 +57,7 @@
|
|||||||
"blockCacheTotal": 50000000
|
"blockCacheTotal": 50000000
|
||||||
},
|
},
|
||||||
"peers":{
|
"peers":{
|
||||||
"minimumScore": -4000,
|
"minimumScore": -1000,
|
||||||
"maxStoredPeers": 100,
|
"maxStoredPeers": 100,
|
||||||
"maxConnect": 3
|
"maxConnect": 3
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user