Fix Phase 1 epoch_processing and fix epoch_processing testgen
This commit is contained in:
parent
e53213a585
commit
15e48f712b
|
@ -1054,6 +1054,8 @@ def process_epoch(state: BeaconState) -> None:
|
|||
process_justification_and_finalization(state)
|
||||
process_rewards_and_penalties(state)
|
||||
process_registry_updates(state)
|
||||
process_reveal_deadlines(state) # Phase 1
|
||||
process_challenge_deadlines(state) # Phase 1
|
||||
process_slashings(state)
|
||||
process_eth1_data_votes_updates(state)
|
||||
process_effective_balances_updates(state)
|
||||
|
@ -1061,8 +1063,7 @@ def process_epoch(state: BeaconState) -> None:
|
|||
process_randao_mixes_updates(state)
|
||||
process_historical_roots_updates(state)
|
||||
process_participation_record_updates(state)
|
||||
# Phase 1
|
||||
process_phase_1_final_updates(state)
|
||||
process_phase_1_final_updates(state) # Phase 1
|
||||
```
|
||||
|
||||
#### Phase 1 final updates
|
||||
|
|
|
@ -184,7 +184,7 @@ def create_provider(handler_name: str, tests_src, config_name: str) -> gen_typin
|
|||
|
||||
if __name__ == "__main__":
|
||||
gen_runner.run_generator("epoch_processing", [
|
||||
create_provider('final_updates', test_process_final_updates, 'minimal'),
|
||||
create_provider('justification_and_finalization', test_process_justification_and_finalization, 'minimal'),
|
||||
...
|
||||
])
|
||||
|
||||
|
|
|
@ -33,16 +33,21 @@ def create_provider(fork_name: str, handler_name: str,
|
|||
|
||||
if __name__ == "__main__":
|
||||
phase_0_mods = {key: 'eth2spec.test.phase0.epoch_processing.test_process_' + key for key in [
|
||||
'final_updates',
|
||||
'justification_and_finalization',
|
||||
'registry_updates',
|
||||
'rewards_and_penalties',
|
||||
'registry_updates',
|
||||
'slashings',
|
||||
'eth1_data_votes_updates',
|
||||
'effective_balances_updates',
|
||||
'slashings_updates',
|
||||
'randao_mixes_updates',
|
||||
'historical_roots_updates',
|
||||
'participation_record_updates',
|
||||
]}
|
||||
phase_1_mods = {**{key: 'eth2spec.test.phase1.epoch_processing.test_process_' + key for key in [
|
||||
'reveal_deadlines',
|
||||
'challenge_deadlines',
|
||||
'custody_final_updates',
|
||||
'reveal_deadlines',
|
||||
]}, **phase_0_mods} # also run the previous phase 0 tests (but against phase 1 spec)
|
||||
|
||||
gen_runner.run_generator(f"epoch_processing", [
|
||||
|
|
Loading…
Reference in New Issue