hosts track their public key

This commit is contained in:
Alex Stokes
2019-10-28 18:44:55 +09:00
parent 11db313b17
commit 32c55bcaf2
4 changed files with 16 additions and 4 deletions

View File

@ -154,9 +154,9 @@ async def new_node(
# TODO routing unimplemented
host: IHost # If not explicitly typed, MyPy raises error
if disc_opt:
host = RoutedHost(swarm_opt, disc_opt)
host = RoutedHost(key_pair.public_key, swarm_opt, disc_opt)
else:
host = BasicHost(swarm_opt)
host = BasicHost(key_pair.public_key, swarm_opt)
# Kick off cleanup job
asyncio.ensure_future(cleanup_done_tasks())