Updated
This commit is contained in:
parent
d00f5ee3a8
commit
3aa6473b7d
|
@ -4,8 +4,9 @@ from class_objectProcessor import MockObjectProcessor
|
||||||
from inventory import MockInventory
|
from inventory import MockInventory
|
||||||
|
|
||||||
|
|
||||||
def main():
|
class MockMain():
|
||||||
"""Mock main function"""
|
"""Mock main function"""
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Start main application"""
|
"""Start main application"""
|
||||||
# pylint: disable=too-many-statements,too-many-branches,too-many-locals
|
# pylint: disable=too-many-statements,too-many-branches,too-many-locals
|
||||||
|
@ -14,7 +15,7 @@ def main():
|
||||||
daemon = config.safeGetBoolean('bitmessagesettings', 'daemon')
|
daemon = config.safeGetBoolean('bitmessagesettings', 'daemon')
|
||||||
|
|
||||||
# Start the address generation thread
|
# Start the address generation thread
|
||||||
addressGeneratorThread = addressGenerator()
|
addressGeneratorThread = FakeAddressGenerator()
|
||||||
# close the main program even if there are threads left
|
# close the main program even if there are threads left
|
||||||
addressGeneratorThread.daemon = True
|
addressGeneratorThread.daemon = True
|
||||||
addressGeneratorThread.start()
|
addressGeneratorThread.start()
|
||||||
|
@ -34,3 +35,13 @@ def main():
|
||||||
objectProcessorThread.start()
|
objectProcessorThread.start()
|
||||||
|
|
||||||
MockInventory() # init
|
MockInventory() # init
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Triggers main module"""
|
||||||
|
mainprogram = MockMain()
|
||||||
|
mainprogram.start()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
Reference in New Issue
Block a user