DEV Community

Discussion on: How to merge an Ethereum network right from the genesis block

Collapse
 
avenbreaks profile image
Cici Sabrina

eth. getBlockByNumber(0)

i took from the hash: "0x56c9b4417bafc42766888bae53959de8f0e5ac898eec6b30880c340f45d6ede9", and put this hash in deposit_contract_block.txt

then I tried to execute everything and run as you provide but I get a notification like this:
Node is syncing - Service Unavailable: Node is syncing - waiting for peers - Failed to obtain attester duty.

in the beacon node they get peer :
info: Searching peers - peers: 1 - slot: 3264964 (skipped 3264964) - head: 0 0 0x9e15…5549 - execution: valid(0x56c9…ede9) - finalized: 0x0000…0000:0

in geth I get something like this:
Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!

Collapse
 
q9 profile image
Afri

slot: 3264964 (skipped 3264964) indicates that something is wrong with your genesis timestamp. it should be less than 32 ideally.

Collapse
 
avenbreaks profile image
Cici Sabrina

sorry, sir, what do you mean, can I just change my timestamp to number 32?

Thread Thread
 
nflaig profile image
Nico Flaig

Genesis time should not be more than 32 slots behind current time. For example if your SECONDS_PER_SLOT value is 12, then genesis time must not be more than 384 seconds in the past when starting the network.

There is a known issue (github.com/ChainSafe/lodestar/issu...) were Lodestar won't be able to sync due to a genesis time to far in the past and no peers to range sync historical data from.