Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Aug 26, 2019
1 parent c78bf31 commit 6acb82b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -834,19 +834,17 @@ def _compute_next_historical_roots(state: BeaconState, config: Eth2Config) -> Tu
def process_final_updates(state: BeaconState, config: Eth2Config) -> BeaconState:
new_eth1_data_votes = _determine_next_eth1_votes(state, config)
new_validators = _update_effective_balances(state, config)
new_start_shard = _compute_next_start_shard(state, config)
new_active_index_roots = _compute_next_active_index_roots(state, config)
new_compact_committees_roots = _compute_next_compact_committees_roots(
state.copy(
validators=new_validators,
start_shard=new_start_shard,
),
config,
)
new_slashings = _compute_next_slashings(state, config)
new_randao_mixes = _compute_next_randao_mixes(state, config)
new_historical_roots = _compute_next_historical_roots(state, config)

new_start_shard = _compute_next_start_shard(state, config)
return state.copy(
eth1_data_votes=new_eth1_data_votes,
validators=new_validators,
Expand Down

0 comments on commit 6acb82b

Please sign in to comment.