rzmahmood / ethereum-pos-testnet

💻⛓️ A Quick and Easy Way to Bootstrap your own Local Ethereum PoS Testnet. Great for testing consensus ⛓️💻
MIT License
48 stars 26 forks source link

What to do if i want to set up a redundancy node for this (or similar) setup ? #14

Open SyedMuhamadYasir opened 1 year ago

SyedMuhamadYasir commented 1 year ago

Any help is greatly appreciated !

I am running geth with lighthouse and will appreciate your guidance!

rzmahmood commented 1 year ago

I'm not sure what you mean by redundancy node, but you can configure the NUM_NODES variable in the script to run multiple nodes, which can give you more redundancy.

SyedMuhamadYasir commented 1 year ago

i meant setting up another node on a physically separate machine

rzmahmood commented 1 year ago

As long as you facilitate peer discovery for the execution client and the consensus client, you can run from any machine. You will need to modify the script ofcourse, but this script can be used as a reference and nothing new will be required.

E.g. Machine 1: Run execution client bootnode. Store the enode Machine 2: Run Node 1 (execution client configured to use bootnode from Machine 1 / consensus client with no bootnode) Machine 3: Run Node 2 (execution client configured to use bootnode from Machine 1 / consensus client configured to use Machine 2's consensus client as bootnode).

You'll also need to make sure all nodes have the same genesis, as done in my script.

cryptonix21 commented 1 year ago

Hi @SyedMuhamadYasir , @rzmahmood ! Hope you both are doing well.

Machine 1: I am running the bootnode Machine 2: Node-1) Running the geth node with machine 1 bootnode and beacon node without bootstrap node Node-2) Running 2nd geth node with machine 1 bootnode and beacon node with first beacon bootstrap node. Machine 3: Node-3) Running 3rd geth node with machine 1 bootnode and beacon node with first beacon bootstrap node.

Here I'm running 2 nodes from machine2 and 1 node from machine3 and machine2 2 nodes are creating separate blockchains and the machine3 node is not connecting with the other 2 nodes, showing looking for peers.

Here i am using the same genesis files and i am creating the new accounts per each node and adding in genesis file extract data to become a validator.

2_beacon_node.txt 1_beacon_node.txt 2_geth_node.txt 1_geth_node.txt

rupamharod1 commented 1 year ago

Hi @SyedMuhamadYasir , @rzmahmood ! Hope you both are doing well.

I am also creating the two nodes from different droplets with same Genesis file and boot node and prysm bootstrap node from node1 and facing the same issue how to resolve that??