Move knownnodes module into network package

This commit is contained in:
Dmitri Bogomolov 2020-07-16 17:05:32 +03:00
parent b165a6b4ef
commit d56191ebba
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
10 changed files with 9 additions and 15 deletions

View File

@ -40,12 +40,12 @@ from debug import logger # this should go before any threads
from helper_startup import (
adjustHalfOpenConnectionsLimit, start_proxyconfig)
from inventory import Inventory
from knownnodes import readKnownNodes
# Network objects and threads
from network import (
BMConnectionPool, Dandelion, AddrThread, AnnounceThread, BMNetworkThread,
InvThread, ReceiveQueueThread, DownloadThread, UploadThread
)
from network.knownnodes import readKnownNodes
from singleinstance import singleinstance
# Synchronous threads
from threads import (

View File

@ -6,13 +6,12 @@ import time
from PyQt4 import QtCore, QtGui
import knownnodes
import l10n
import network.stats
import state
import widgets
from inventory import Inventory
from network import BMConnectionPool
from network import BMConnectionPool, knownnodes
from retranslateui import RetranslateMixin
from tr import _translate
from uisignaler import UISignaler

View File

@ -10,7 +10,6 @@ from PyQt4 import QtCore, QtGui
import debug
import defaults
import knownnodes
import namecoin
import openclpow
import paths
@ -20,6 +19,7 @@ import widgets
from bmconfigparser import BMConfigParser
from helper_sql import sqlExecute, sqlStoredProcedure
from helper_startup import start_proxyconfig
from network import knownnodes
from network.asyncore_pollchoose import set_rates
from tr import _translate

View File

@ -17,7 +17,6 @@ import helper_inbox
import helper_msgcoding
import helper_sent
import highlevelcrypto
import knownnodes
import l10n
import protocol
import queues
@ -32,7 +31,7 @@ from bmconfigparser import BMConfigParser
from fallback import RIPEMD160Hash
from helper_ackPayload import genAckPayload
from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery
from network import bmproto
from network import bmproto, knownnodes
from network.node import Peer
# pylint: disable=too-many-locals, too-many-return-statements, too-many-branches, too-many-statements

View File

@ -23,14 +23,13 @@ import gc
import os
import time
import knownnodes
import queues
import state
import tr
from bmconfigparser import BMConfigParser
from helper_sql import sqlExecute, sqlQuery
from inventory import Inventory
from network import BMConnectionPool, StoppableThread
from network import BMConnectionPool, knownnodes, StoppableThread
#: Equals 4 weeks. You could make this longer if you want

View File

@ -17,7 +17,6 @@ import helper_inbox
import helper_msgcoding
import helper_random
import highlevelcrypto
import knownnodes
import l10n
import proofofwork
import protocol
@ -31,7 +30,7 @@ from addresses import (
from bmconfigparser import BMConfigParser
from helper_sql import sqlExecute, sqlQuery
from inventory import Inventory
from network import StoppableThread
from network import knownnodes, StoppableThread
def sizeof_fmt(num, suffix='h/s'):

View File

@ -8,8 +8,8 @@ import state
from debug import logger
from helper_sql import sqlQuery, sqlStoredProcedure
from inventory import Inventory
from knownnodes import saveKnownNodes
from network import StoppableThread
from network.knownnodes import saveKnownNodes
from queues import (
addressGeneratorQueue, objectProcessorQueue, UISignalQueue, workerQueue)

View File

@ -11,13 +11,12 @@ import string
import time
import unittest
import knownnodes
import protocol
import state
from bmconfigparser import BMConfigParser
from helper_msgcoding import MsgEncode, MsgDecode
from helper_startup import start_proxyconfig
from network import asyncore_pollchoose as asyncore
from network import asyncore_pollchoose as asyncore, knownnodes
from network.bmproto import BMProto
from network.connectionpool import BMConnectionPool
from network.node import Node, Peer

View File

@ -12,13 +12,12 @@ from random import randint
from urlparse import urlparse
from xml.dom.minidom import Document, parseString
import knownnodes
import queues
import state
import tr
from bmconfigparser import BMConfigParser
from debug import logger
from network import BMConnectionPool, StoppableThread
from network import BMConnectionPool, knownnodes, StoppableThread
from network.node import Peer