add dependencies

This commit is contained in:
zixuanzh 2019-04-17 21:21:17 -04:00
parent d5c7cc7cb7
commit 3c6ad886bb
2 changed files with 5 additions and 3 deletions

View File

@ -22,6 +22,8 @@ setuptools.setup(
"base58",
"pymultihash",
"multiaddr",
"rpcudp",
"umsgpack"
],
packages=["libp2p"],
zip_safe=False,

View File

@ -31,13 +31,13 @@ async def test_example():
async def test_multiple_nodes_bootstrap_set_get(nodes_nr):
node_bootstrap = Server()
await node_bootstrap.listen(1000 + nodes_nr * 2)
await node_bootstrap.listen(3000 + nodes_nr * 2)
nodes = []
for i in range(nodes_nr):
node = Server()
addrs = [("127.0.0.1", 1000 + nodes_nr * 2)]
await node.listen(1001 + i + nodes_nr * 2)
addrs = [("127.0.0.1", 3000 + nodes_nr * 2)]
await node.listen(3001 + i + nodes_nr * 2)
await node.bootstrap(addrs)
nodes.append(node)