ethpandaops / ethereum-genesis-generator Goto Github PK
View Code? Open in Web Editor NEWCreate a ethereum execution and consensus layer testnet genesis and expose it via a webserver for testing purposes
License: MIT License
Create a ethereum execution and consensus layer testnet genesis and expose it via a webserver for testing purposes
License: MIT License
In order to be able to shadowfork networks that have went through Deneb, we need to be able to generate a CL genesis which supports deneb at genesis.
I see in values.env there is
export BEACON_STATIC_ENR=
and what I understand before getting enr must have genesis.json and initialize it with datadir. or how can I get the bootnode so that it can be entered into values.env?
i made my own public blockchain sir.
Geth and besu genesis uses dec instead of hex.
Investigate if we care.
This value is present in the presets and is not a configurable variable. So we should be removing it from the config.yaml as well. All Deneb related config params can be found here: https://github.com/ethereum/consensus-specs/blob/dev/configs/mainnet.yaml#L144
Context for this issue: status-im/nimbus-eth2#5588
Note:
we are using branch v3.0.3, docker image v3.0.3 and go-ethereum latest version but after initializing genesis file, we got Zero Trie Root Hash error and different genesis hash. is this version still in development? thanks
ERROR[04-29|02:53:36.215] Zero trie root hash!
ERROR[04-29|02:53:36.215] Head block is not reachable
INFO [04-29|02:53:36.293] Successfully wrote genesis state database=lightchaindata hash=53929c..343f8a
Deposit Contract Block Hash
0x03033636026cd9099ac88fe23fd30f4440e9d2efd3035ebb05739bcf50056573
Logs
INFO [04-29|02:53:36.178] Maximum peer count ETH=50 total=50
INFO [04-29|02:53:36.180] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [04-29|02:53:36.182] Set global gas cap cap=50,000,000
INFO [04-29|02:53:36.182] Initializing the KZG library backend=gokzg
INFO [04-29|02:53:36.196] Defaulting to pebble as the backing database
INFO [04-29|02:53:36.196] Allocated cache and file handles database=/root/testnet/gethdata/geth/chaindata cache=16.00MiB handles=16
INFO [04-29|02:53:36.215] Opened ancient database database=/root/testnet/gethdata/geth/chaindata/ancient/chain readonly=false
INFO [04-29|02:53:36.215] State schema set to default scheme=path
ERROR[04-29|02:53:36.215] Zero trie root hash!
ERROR[04-29|02:53:36.215] Head block is not reachable
INFO [04-29|02:53:36.221] Opened ancient database database=/root/testnet/gethdata/geth/chaindata/ancient/state readonly=false
INFO [04-29|02:53:36.221] Writing custom genesis block
INFO [04-29|02:53:36.249] Successfully wrote genesis state database=chaindata hash=53929c..343f8a
INFO [04-29|02:53:36.249] Defaulting to pebble as the backing database
INFO [04-29|02:53:36.249] Allocated cache and file handles database=/root/testnet/gethdata/geth/lightchaindata cache=16.00MiB handles=16
INFO [04-29|02:53:36.259] Opened ancient database database=/root/testnet/gethdata/geth/lightchaindata/ancient/chain readonly=false
INFO [04-29|02:53:36.259] State schema set to default scheme=path
ERROR[04-29|02:53:36.259] Zero trie root hash!
ERROR[04-29|02:53:36.259] Head block is not reachable
INFO [04-29|02:53:36.266] Opened ancient database database=/root/testnet/gethdata/geth/lightchaindata/ancient/state readonly=false
INFO [04-29|02:53:36.266] Writing custom genesis block
INFO [04-29|02:53:36.293] Successfully wrote genesis state database=lightchaindata hash=53929c..343f8a
I want to set one or more contracts that even have pre-loaded data using slot. Can I do it with the configuration?
I am trying to use this repo to create genesis files for a shadow fork of mainnet
but seems the readme is outdated , config/values.env is not the repo any more , could anyone update the readme according the latest code ?
and anyone could help with "how to generate mainnet shadow fork used files ? " the current readme is quite confused for how should I config the the values
Logs:
+ exec python3 -m SimpleHTTPServer 8000
/apps/el-gen/.venv/bin/python3: No module named SimpleHTTPServer
issue with decoding the eth1 config file in the Go code. it seems that this number is being interpreted as the value for the cancunTime
field of type uint64 in the ChainConfig struct.
zrnt version: v0.30.0
failed to decode eth1 config file: json: cannot unmarshal number 7083549724304467820220 into Go struct field ChainConfig.config.cancunTime of type uint64
Running:
docker run --rm --platform linux/x86_64 -it -u $UID -v $PWD/output:/data \
-v $PWD/config-example:/config \
ethpandaops/ethereum-genesis-generator:latest all
Getting:
Traceback (most recent call last):
File "/apps/el-gen/genesis_geth.py", line 53, in <module>
"shanghaiTime": int(data['genesis_timestamp']) + int(data['genesis_delay']) + (int(data['capella_fork_epoch']) * 32 * int(data['slot_duration_in_seconds'])),
~~~~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'capella_fork_epoch'
So I have added capella_fork_epoch
to my envs and fixed it.
Next I am getting is:
+ genesis_args+=(--eth1-config /data/custom_config_data/genesis.json)
+ /usr/local/bin/eth2-testnet-genesis bellatrix --config /data/custom_config_data/config.yaml --additional-validators /data/all.txt --mnemonics '' --tranches-dir /data/custom_config_data/tranches --state-output /data/custom_config_data/genesis.ssz --eth1-config /data/custom_config_data/genesis.json
zrnt version: v0.30.0
failed to decode eth1 config file: EOF
My all.txt looks like this:
version https://git-lfs.github.com/spec/v1
oid sha256:ba977b5b1da180914c934623fce187860e1b54cff939e6208533b2cb5f589e07
size 239541186
https://raw.githubusercontent.com/eth-clients/holesky/main/public-keys/all.txt
I also tried to run without passing my own configs.
What am I missing?
geth/besu: cancunEOFTime
nethermind: eip7692TransitionTimestamp
config.yaml
is expecting CL_TIMESTAMP variable which is not present in the values.env file.
Am I supposed to add it? And is it supposed to be the same as GENESIS_TIMESTAMP?
Hi @parithosh
Sorry for bothering you. I am migrating my dapp from goerli to sepolia network and am building infrastructure with sepolia testnet so that users can use it, I plan to make a faucet that provides free sepolia ETH so that the community can test most conveniently for users.
Can you give me 12k ETH so I can distribute it to the community.
My wallet address is: 0x8B3AbB8061B8F33bA988FB74489E5AC501DDaF05
I will be very grateful to you!
Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.