hoprnet / hopr-core

Main repository of HOPR - this is all you need to run a node on the HOPR network!
https://hoprnet.org
GNU General Public License v3.0
14 stars 5 forks source link

HOPR node is unable to connect to multiple bootstrap servers #63

Closed 0xjjpa closed 4 years ago

0xjjpa commented 4 years ago

Expected Behavior

A HOPR node successfully connects to all Bootstrap nodes provided to it.

Current Behavior

The HOPR node is only able to connect to the first Bootstrap node passed.

Possible Solution

None for now.

Steps to Reproduce

  1. Set the HOPR node environment variables.
    HOPR_PORT=9091 \
    HOST_IPV4=0.0.0.0:$HOPR_PORT \
    DOCKER_IMAGE=gcr.io/hoprassociation/hopr-core:nat-traversal-784a2c5 \
    BOOTSTRAP_SERVERS=/ip4/34.65.92.146/tcp/9091/p2p/16Uiu2HAm5HEoRMUSD5fjofEEDRyxhY4hCAwmYgphdF1TPUnzHgNz,/ip4/34.65.237.196/tcp/9091/p2p/16Uiu2HAmHFq9BJS1sxPxo9Bn5A6TEedpCuf6izpX2rA5QDg6qFZa \
    ETHEREUM_PROVIDER=wss://kovan.infura.io/ws/v3/$INFURA_KEY \
    PORTS=$HOPR_PORT:$HOPR_PORT
  2. Run the given version
    docker run -v $(pwd)/db:/app/db -e HOST_IPV4=$HOST_IPV4 -e BOOTSTRAP_SERVERS=$BOOTSTRAP_SERVERS -e ETHEREUM_PROVIDER=$ETHEREUM_PROVIDER -p $PORTS -it $DOCKER_IMAGE -p 123456

Context (Environment)

HOPR Node

Chat Version: 1.0.0-rc
Core Version: 0.5.5-natTraversal.784a2c5
Core Ethereum Version: 0.0.3-dev.3102b43
Utils Version: 0.1.3
Connector Version: 1.0.1-0

Bootstrap Servers: /ip4/34.65.92.146/tcp/9091/p2p/16Uiu2HAm5HEoRMUSD5fjofEEDRyxhY4hCAwmYgphdF1TPUnzHgNz,/ip4/34.65.237.196/tcp/9091/p2p/16Uiu2HAmHFq9BJS1sxPxo9Bn5A6TEedpCuf6izpX2rA5QDg6qFZa

Bootstrap Server

Chat Version: 1.0.0-rc
Core Version: 0.5.4-natTraversal.rc
Core Ethereum Version: 0.0.3-dev.3102b43
Utils Version: 0.1.3
Connector Version: 1.0.1-0

Detailed Description

Ideally, both bootstrap servers can be connected with.

Possible Implementation

To discuss with @nionis and @robertkiel

0xjjpa commented 4 years ago

This has been solved and corroborated to be also part of a connection issue from bootstrap servers.