fix imports
This commit is contained in:
parent
01296a86b9
commit
0ff6b43d6e
|
@ -7,7 +7,7 @@ import time
|
|||
import protocol
|
||||
import state
|
||||
import network.connectionpool # use long name to address recursive import
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
from highlevelcrypto import calculateInventoryHash
|
||||
|
||||
logger = logging.getLogger('default')
|
||||
|
|
|
@ -17,7 +17,7 @@ from network import knownnodes
|
|||
import protocol
|
||||
import state
|
||||
import network.connectionpool # use long name to address recursive import
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
from bmconfigparser import config
|
||||
from queues import invQueue, objectProcessorQueue, portCheckerQueue
|
||||
from randomtrackingdict import RandomTrackingDict
|
||||
|
|
|
@ -8,7 +8,7 @@ from threading import RLock
|
|||
from time import time
|
||||
import six
|
||||
|
||||
from network import connectionpool
|
||||
import network.connectionpool # use long name to address recursive import
|
||||
import state
|
||||
from queues import invQueue
|
||||
|
||||
|
@ -185,11 +185,11 @@ class Dandelion: # pylint: disable=old-style-class
|
|||
try:
|
||||
# random two connections
|
||||
self.stem = sample(
|
||||
sorted(connectionpool.BMConnectionPool(
|
||||
sorted(network.connectionpool.BMConnectionPool(
|
||||
).outboundConnections.values()), MAX_STEMS)
|
||||
# not enough stems available
|
||||
except ValueError:
|
||||
self.stem = connectionpool.BMConnectionPool(
|
||||
self.stem = network.connectionpool.BMConnectionPool(
|
||||
).outboundConnections.values()
|
||||
self.nodeMap = {}
|
||||
# hashMap stays to cater for pending stems
|
||||
|
|
|
@ -10,7 +10,7 @@ import protocol
|
|||
from network import connectionpool
|
||||
from .objectracker import missingObjects
|
||||
from .threads import StoppableThread
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
|
||||
|
||||
class DownloadThread(StoppableThread):
|
||||
|
|
|
@ -9,7 +9,7 @@ import addresses
|
|||
import protocol
|
||||
import state
|
||||
from network import connectionpool
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
from queues import invQueue
|
||||
from .threads import StoppableThread
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ from threading import RLock
|
|||
import six
|
||||
|
||||
import network.connectionpool # use long name to address recursive import
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
from randomtrackingdict import RandomTrackingDict
|
||||
|
||||
haveBloom = False
|
||||
|
|
|
@ -17,7 +17,7 @@ import l10n
|
|||
import protocol
|
||||
import state
|
||||
import network.connectionpool # use long name to address recursive import
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
from bmconfigparser import config
|
||||
from highlevelcrypto import randomBytes
|
||||
from queues import invQueue, receiveDataQueue, UISignalQueue
|
||||
|
|
|
@ -7,7 +7,7 @@ import helper_random
|
|||
import protocol
|
||||
import state
|
||||
from network import connectionpool
|
||||
import dandelion
|
||||
from network import dandelion
|
||||
from randomtrackingdict import RandomTrackingDict
|
||||
from .threads import StoppableThread
|
||||
|
||||
|
|
Reference in New Issue
Block a user