Closed hwwhww closed 6 years ago
Fixes #69
beacon_chain.state.genesis_helpers.py
get_genesis_active_state(config: Dict[str, Any]) -> ActiveState
get_genesis_crystallized_state(validators: List['ValidatorRecord'], init_shuffling_seed: Hash32, config: Dict[str, Any]) -> CrystallizedState
get_genesis_block(active_state_root: Hash32, crystallized_state_root: Hash32) -> Block
genesis_block
active_state_root=gensis_active_root.hash
crystallized_state_root=crystallized_state_root.hash
What was wrong?
Fixes #69
How was it fixed?
beacon_chain.state.genesis_helpers.py
includes three genesis helpers:get_genesis_active_state(config: Dict[str, Any]) -> ActiveState
get_genesis_crystallized_state(validators: List['ValidatorRecord'], init_shuffling_seed: Hash32, config: Dict[str, Any]) -> CrystallizedState
get_genesis_block(active_state_root: Hash32, crystallized_state_root: Hash32) -> Block
genesis_block
: setactive_state_root=gensis_active_root.hash
andcrystallized_state_root=crystallized_state_root.hash
.