mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 21:16:52 +00:00
commit
6a9c756191
@ -1551,7 +1551,7 @@ def get_initial_beacon_state(initial_validator_deposits: List[Deposit],
|
|||||||
if get_effective_balance(state, validator_index) >= MAX_DEPOSIT_AMOUNT:
|
if get_effective_balance(state, validator_index) >= MAX_DEPOSIT_AMOUNT:
|
||||||
activate_validator(state, validator_index, is_genesis=True)
|
activate_validator(state, validator_index, is_genesis=True)
|
||||||
|
|
||||||
genesis_active_index_root = hash_tree_root(get_active_validator_indices(state, GENESIS_EPOCH))
|
genesis_active_index_root = hash_tree_root(get_active_validator_indices(state.validator_registry, GENESIS_EPOCH))
|
||||||
for index in range(LATEST_INDEX_ROOTS_LENGTH):
|
for index in range(LATEST_INDEX_ROOTS_LENGTH):
|
||||||
state.latest_index_roots[index] = genesis_active_index_root
|
state.latest_index_roots[index] = genesis_active_index_root
|
||||||
state.current_epoch_seed = generate_seed(state, GENESIS_EPOCH)
|
state.current_epoch_seed = generate_seed(state, GENESIS_EPOCH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user