flake8: state
This commit is contained in:
parent
354bf45d54
commit
57ddf8f2fd
23
src/state.py
23
src/state.py
|
@ -2,7 +2,7 @@ import collections
|
||||||
|
|
||||||
neededPubkeys = {}
|
neededPubkeys = {}
|
||||||
streamsInWhichIAmParticipating = []
|
streamsInWhichIAmParticipating = []
|
||||||
sendDataQueues = [] #each sendData thread puts its queue in this list.
|
sendDataQueues = [] # each sendData thread puts its queue in this list.
|
||||||
|
|
||||||
# For UPnP
|
# For UPnP
|
||||||
extPort = None
|
extPort = None
|
||||||
|
@ -13,21 +13,22 @@ socksIP = None
|
||||||
# Network protocols availability, initialised below
|
# Network protocols availability, initialised below
|
||||||
networkProtocolAvailability = None
|
networkProtocolAvailability = None
|
||||||
|
|
||||||
appdata = '' #holds the location of the application data storage directory
|
appdata = '' # holds the location of the application data storage directory
|
||||||
|
|
||||||
shutdown = 0 #Set to 1 by the doCleanShutdown function. Used to tell the proof of work worker threads to exit.
|
|
||||||
|
|
||||||
|
# Set to 1 by the doCleanShutdown function.
|
||||||
|
# Used to tell the proof of work worker threads to exit.
|
||||||
|
shutdown = 0
|
||||||
|
|
||||||
# Component control flags - set on startup, do not change during runtime
|
# Component control flags - set on startup, do not change during runtime
|
||||||
# The defaults are for standalone GUI (default operating mode)
|
# The defaults are for standalone GUI (default operating mode)
|
||||||
enableNetwork = True # enable network threads
|
enableNetwork = True # enable network threads
|
||||||
enableObjProc = True # enable object processing threads
|
enableObjProc = True # enable object processing threads
|
||||||
enableAPI = True # enable API (if configured)
|
enableAPI = True # enable API (if configured)
|
||||||
enableGUI = True # enable GUI (QT or ncurses)
|
enableGUI = True # enable GUI (QT or ncurses)
|
||||||
enableSTDIO = False # enable STDIO threads
|
enableSTDIO = False # enable STDIO threads
|
||||||
curses = False
|
curses = False
|
||||||
|
|
||||||
sqlReady = False # set to true by sqlTread when ready for processing
|
sqlReady = False # set to true by sqlTread when ready for processing
|
||||||
|
|
||||||
maximumNumberOfHalfOpenConnections = 0
|
maximumNumberOfHalfOpenConnections = 0
|
||||||
|
|
||||||
|
@ -56,10 +57,12 @@ missingObjects = {}
|
||||||
|
|
||||||
Peer = collections.namedtuple('Peer', ['host', 'port'])
|
Peer = collections.namedtuple('Peer', ['host', 'port'])
|
||||||
|
|
||||||
|
|
||||||
def resetNetworkProtocolAvailability():
|
def resetNetworkProtocolAvailability():
|
||||||
global networkProtocolAvailability
|
global networkProtocolAvailability
|
||||||
networkProtocolAvailability = {'IPv4': None, 'IPv6': None, 'onion': None}
|
networkProtocolAvailability = {'IPv4': None, 'IPv6': None, 'onion': None}
|
||||||
|
|
||||||
|
|
||||||
resetNetworkProtocolAvailability()
|
resetNetworkProtocolAvailability()
|
||||||
|
|
||||||
dandelion = 0
|
dandelion = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user