From 4b995e7996bb0b0483cf514ae40559c1c4fbf525 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 13 Mar 2018 11:42:43 +0100 Subject: [PATCH] Fix circular import - previous commit broke --- src/network/objectracker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network/objectracker.py b/src/network/objectracker.py index 4bb0c191..ff2a9036 100644 --- a/src/network/objectracker.py +++ b/src/network/objectracker.py @@ -4,7 +4,6 @@ from threading import RLock from inventory import Inventory import network.connectionpool from network.dandelion import Dandelion -from network.stats import pendingDownload from randomtrackingdict import RandomTrackingDict from state import missingObjects @@ -55,7 +54,7 @@ class ObjectTracker(object): def clean(self): if self.lastCleaned < time.time() - ObjectTracker.invCleanPeriod: if haveBloom: - if pendingDownload() == 0: + if len(missingObjects) == 0: self.initInvBloom() self.initAddrBloom() else: