Closed rohitasb closed 2 months ago
I think the repo you're following is too old. Trying to do a merge transition won't work because Geth and Lighthouse no longer support it (see a similar recent issue: https://github.com/sigp/lighthouse/issues/6301).
If you want to run a local testnet, please use the latest version of Lighthouse and the script here: https://github.com/sigp/lighthouse/tree/stable/scripts/local_testnet.
Description
Following https://github.com/ethereum/local-testnet. It sets geth PoA private network and then converts it to PoS with lighthouse as consensus client.
I have created and run 2 Geth PoA nodes + 1 Signer Node and they are connected with each other. Then used web3 js library to js source files - deploy-deposit-contract.js, distribute-validators.js, transfer-deposit.js Then ran lcli commands: lcli eth1-genesis & lcli generate-bootnode-enr Then imported the keystores of the validators to the lighthouse data directories
Next it would setup consensus client - 1 bootnode + 2 beacon nodes + 2 validator nodes
My issue is that bootnode has not discovered the beacons nodes. Peer count of beacon nodes is 0.
To run bootnode:
To run beacon node:
Beacon Nodes tried to sync and but sync is stalled as peer count is 0. Later, I tried adding --boot-nodes $ENR_MULTIADDR to above beacon node command. I tried giving both the bootnode's enr and multiadrr when running beacon nodes.
Ran beacon node 1: it is was stuck (it was just waiting and not showing any effect)
Ran beacon node 2: its beacon_log show error
Beacon node 1 Logs:
Beaco node 2 Logs:
So
Version
Using lighthouse v4.3.0 and same for lcli (Lighthouse CLI Tool Lighthouse/v4.3.0-dfcb336) . Note: Because new versions of lighthouse doesn't have lcli eth1-genesis, I used v4.3.0 version where it is available.
Present Behaviour
Describe the present behaviour of the application, with regards to this issue.
Expected Behaviour
CL Bootnode and Beacon node should connect with each other. They should sync with geth PoA network and then switch PoS.
Request Help
How should I solve this peer connectivity issue and have PoA switch to PoS? You could also share on how to set up geth + lighthouse private PoS network with latest version of lighthouse, geth, lcli