58 lines
1.1 KiB
Python
58 lines
1.1 KiB
Python
"""
|
|
Global runtime variables.
|
|
"""
|
|
|
|
neededPubkeys = {}
|
|
streamsInWhichIAmParticipating = []
|
|
|
|
extPort = None
|
|
"""For UPnP"""
|
|
|
|
socksIP = None
|
|
"""for Tor hidden service"""
|
|
|
|
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.
|
|
"""
|
|
|
|
# Component control flags - set on startup, do not change during runtime
|
|
# The defaults are for standalone GUI (default operating mode)
|
|
enableNetwork = True
|
|
"""enable network threads"""
|
|
enableObjProc = True
|
|
"""enable object processing threads"""
|
|
enableAPI = True
|
|
"""enable API (if configured)"""
|
|
enableGUI = True
|
|
"""enable GUI (QT or ncurses)"""
|
|
enableSTDIO = False
|
|
"""enable STDIO threads"""
|
|
curses = False
|
|
|
|
sqlReady = False
|
|
"""set to true by sqlTread when ready for processing"""
|
|
|
|
maximumNumberOfHalfOpenConnections = 0
|
|
|
|
invThread = None
|
|
addrThread = None
|
|
downloadThread = None
|
|
uploadThread = None
|
|
|
|
ownAddresses = {}
|
|
|
|
discoveredPeers = {}
|
|
|
|
dandelion = 0
|
|
|
|
testmode = False
|
|
|
|
kivy = False
|
|
|
|
association = ''
|