Defer peer discovery
This commit is contained in:
parent
316f642a08
commit
221f1222a6
@ -113,9 +113,11 @@ class Controller(ServerBase):
|
|||||||
'''
|
'''
|
||||||
self.session_mgr.start_rpc_server()
|
self.session_mgr.start_rpc_server()
|
||||||
await self.bp.catch_up_to_daemon()
|
await self.bp.catch_up_to_daemon()
|
||||||
self.peer_mgr.start_peer_discovery()
|
|
||||||
await self.mempool.start_and_wait_for_sync()
|
await self.mempool.start_and_wait_for_sync()
|
||||||
self.session_mgr.start_serving()
|
self.session_mgr.start_serving()
|
||||||
|
# Peer discovery should start after we start serving because
|
||||||
|
# we connect to ourself
|
||||||
|
self.peer_mgr.start_peer_discovery()
|
||||||
|
|
||||||
async def shutdown(self):
|
async def shutdown(self):
|
||||||
'''Perform the shutdown sequence.'''
|
'''Perform the shutdown sequence.'''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user