diff --git a/compose.yml b/compose.yml index 56ad0502..e3a234b5 100644 --- a/compose.yml +++ b/compose.yml @@ -24,6 +24,9 @@ services: depends_on: - bootstrap - etcd + - mix-node-0 + - mix-node-1 + - mix-node-2 environment: - LIBP2P_REPLICAS=${DOCKER_COMPOSE_LIBP2P_REPLICAS:-1} - ETCDCTL_ENDPOINTS=${DOCKER_COMPOSE_ETCDCTL_ENDPOINTS:-etcd:2379} diff --git a/testnet/libp2p_config.yaml b/testnet/libp2p_config.yaml index 0ae24a6b..6427c808 100644 --- a/testnet/libp2p_config.yaml +++ b/testnet/libp2p_config.yaml @@ -23,7 +23,7 @@ network: log_level: "fatal" node_key: "0000000000000000000000000000000000000000000000000000000000000001" discV5BootstrapNodes: [] - initial_peers: [] + initial_peers: ["/dns/bootstrap/tcp/3000"] relayTopics: [] # Mixclient configuration to communicate with mixnodes. # The libp2p network backend always requires this mixclient configuration @@ -40,11 +40,16 @@ network: layers: - nodes: - address: mix-node-0:7777 # A listen address of the mixnode - public_key: "0000000000000000000000000000000000000000000000000000000000000000" + public_key: "fd3384e132ad02a56c78f45547ee40038dc79002b90d29ed90e08eee762ae715" + - nodes: - address: mix-node-1:7777 # A listen address of the mixnode - public_key: "0000000000000000000000000000000000000000000000000000000000000000" + public_key: "fd3384e132ad02a56c78f45547ee40038dc79002b90d29ed90e08eee762ae715" + + - nodes: - address: mix-node-2:7777 # A listen address of the mixnode - public_key: "0000000000000000000000000000000000000000000000000000000000000000" + public_key: "fd3384e132ad02a56c78f45547ee40038dc79002b90d29ed90e08eee762ae715" + + # A max number of connections that will stay connected to mixnodes in the first mixnet layer. connection_pool_size: 255 max_retries: 5 diff --git a/testnet/mixnode_config.yaml b/testnet/mixnode_config.yaml index c013dba7..a572fcd3 100644 --- a/testnet/mixnode_config.yaml +++ b/testnet/mixnode_config.yaml @@ -7,7 +7,7 @@ mixnode: client_listen_address: 0.0.0.0:7778 # A ed25519 private key for decrypting inbound Sphinx packets # received from mixclients or mixnodes in the previous mixnet layer. - private_key: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + private_key: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] # A max number of connections that will stay connected to mixnodes in the next layer. connection_pool_size: 255 log: