Skip to content

Commit

Permalink
get discovery to work
Browse files Browse the repository at this point in the history
  • Loading branch information
pipermerriam committed May 22, 2018
1 parent 2e5deca commit 04ae1c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trinity/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
BaseManager,
)
import signal
import socket
import sys
from typing import Type

Expand Down Expand Up @@ -246,6 +245,10 @@ def run_lightnode_process(chain_config: ChainConfig) -> None:

async def run_chain(chain):
try:
await loop.create_datagram_endpoint(
lambda: discovery,
local_addr=('0.0.0.0', chain_config.port)
)
asyncio.ensure_future(discovery.bootstrap())
asyncio.ensure_future(peer_pool.run())
asyncio.ensure_future(ipc_server.run())
Expand Down

0 comments on commit 04ae1c4

Please sign in to comment.