do not use self in peercleanup

This commit is contained in:
Kevin Froman 2018-08-24 18:57:53 -05:00
parent b46bd42d9e
commit b6c015255d
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def peerCleanup(coreInst):
if PeerProfiles(address, coreInst).score < minScore:
coreInst.removeAddress(address)
try:
if (self.coreInst._utils.getEpoch() - coreInst.getPeerInfo(address, 4)) >= 600:
if (coreInst._utils.getEpoch() - coreInst.getPeerInfo(address, 4)) >= 600:
expireTime = 600
else:
expireTime = 86400