From b6c015255deecec4525898d168cb1380c6eea0f6 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 24 Aug 2018 18:57:53 -0500 Subject: [PATCH] do not use self in peercleanup --- onionr/onionrpeers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/onionrpeers.py b/onionr/onionrpeers.py index 82224d0a..a1f4aa8b 100644 --- a/onionr/onionrpeers.py +++ b/onionr/onionrpeers.py @@ -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