I am trying to setup multiple geth nodes on multiple docker containers. I am using a script that can initialize a genesis json file and start geth. After that, I am doing the following manually (and I want to automate them via a JS script which I can call while starting geth):
creating and unlocking user account.
adding other peers. Here, can I have a customer admin.eNodeInfo URL generated for each node? That way, I can automate the way I add the other nodes.Ex: if I hardcode node1's URL to
and node2's URL to
then I could have my script automatically setup node1 and node2 as peers. Else, I need to create node 1 and then manually update the JS script of node2 to pick up node1's enodeURL
I know I can use --bootnodes option, but that will only ensure that we tell geth at startup itself to connect to the other peers by providing the enodeURL of the other peers.
Please let me know.