fix prestate for process registry updates

This commit is contained in:
Danny Ryan 2019-05-27 08:38:37 -06:00
parent e9a01a276d
commit 8d420c0780
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ def run_process_registry_updates(state, valid=True):
# cache state before epoch transition
spec.cache_state(state)
# process components of epoch transition before registry update
spec.process_justification_and_finalization(state)
spec.process_crosslinks(state)
spec.process_rewards_and_penalties(state)
yield 'pre', state
process_registry_updates(state)
yield 'post', state