Open dapplion opened 1 year ago
working on custom network?
Hi @dapplion, can you explain what is genesis_validators_root (or a document explain it).
I am working on a custom chain, pre-merge. But don't know how to generate this root.
Thank you.
@canximan sure genesis_validators_root
is the root of the validators array at genesis time:
state.genesis_validators_root = hash_tree_root(state.validators)
Code for it here https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#genesis
@canximan sure
genesis_validators_root
is the root of the validators array at genesis time:state.genesis_validators_root = hash_tree_root(state.validators)
Code for it here https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#genesis
Great, thank you very much.
So deposit before the merge will have the genesis_validators_root = zero hash.
Producing changes for a custom network requires changes to the source code.
The only data points this tool needs to know about a network to produce deposits and credential changes are:
Both are sufficiently succinct that could be pass as command line args, with some TBD serialization:
csv
json
yaml
yaml succinct
afv
,bfv
, etc.Allowing to just pass a CLI arg would make it very easy to add to guides as a copy paste command and allow to run any network for free without your maintenance.