1
0

separate blockchain and network

This commit is contained in:
ThomasV
2013-09-08 17:23:01 +02:00
parent ac26abfed3
commit 328315f94b
8 changed files with 303 additions and 258 deletions

View File

@@ -128,18 +128,14 @@ if __name__ == '__main__':
#sys.exit("Error: Unknown GUI: " + gui_name )
# network interface
interface = Interface(config, True)
interface.start(wait = False)
interface.send([('server.peers.subscribe',[])])
network = Network(config)
network.start()
#interface.send([('server.peers.subscribe',[])])
blockchain = BlockchainVerifier(interface, config)
blockchain.start()
gui = gui.ElectrumGui(config, interface, blockchain)
gui = gui.ElectrumGui(config, network)
gui.main(url)
interface.stop()
blockchain.stop()
network.stop()
# we use daemon threads, their termination is enforced.
# this sleep command gives them time to terminate cleanly.