fix imports

This commit is contained in:
Kashiko Koibumi 2024-05-30 21:19:16 +09:00
parent 01296a86b9
commit 0ff6b43d6e
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4
8 changed files with 10 additions and 10 deletions

View File

@ -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')

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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