1

I have two nodes, one public, and other in private mode (using --private-mode --no-bootstrap-peers --bootstrap-threshold=1 --connections 1 --peer <PUBLIC_NODE_IP>:<PORT>). The problem is that the private node doesn't have any active connections.

Things to consider:
1. I have marked as trusted my private node in the public one (using trust peer and trust address).
2. Running p2p stat in the public node doesn't show the private node's IP in the Known Points' list. But it does show the private node's identity in Known Peers' list.
3. In the private node is the other way around: it shows the public node's IP in Known Points, but not in Known Peers.

Am I missing something? Is there a way of forcing the public node to prioritize to connect to the private one? Do I have to do something to facilitate discovery between these nodes?

Thanks!

2

The --peer= argument allows to specify peers that node should connect to. This is how you get private nodes to connect to specific peers. It takes an ip and port.

This is from running tezos-node run --help.

--peer=ADDR:PORT
           A peer to bootstrap the network from. Can be used several times to
           add several peers.
| improve this answer | |
  • Thanks, but I used it, and the node didn't connect. Finally after using connect address <private_node_ip>:9732 it did! – raulmarcosl Sep 16 '19 at 12:08
  • 1
    You can set on your public node with your private node as a peer, that will put them on the highest priority and shouldn't disconnect them. More details here: tezos.stackexchange.com/a/712/101 – Frank Sep 16 '19 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.