I am trying to create a non-local private network with go-ethereum running on docker containers hosted in different Virtual Machines. I am having a hard time trying to make the nodes recognize each other. I wonder which is the best strategy to add peers now that bootnode is not working properly (Open Issue #3703). I have followed many aspects of the Vertigobr project.
--nodiscover should be enabled to avoid connecting with nodes external to the private network, these are my questions:
--nat extip:<VM_EXT_IP>the most convenient
- Is only one node (a main one) in possession of the
static-nodes.jsonfile and it automatically links itself to the nodes in the file?
- According to "Connecting to the network" in the Ethereum's documentation
admin.addPeer("enodeURL")only adds nodes temporarily. Does that mean that I have to keep track of my list of nodes in a database, for example, regenerate the
static-nodes.jsonwhen a new node is created, and restart my "main" node to reload this file? Is there an easier way?