add assertions on flag updates

This commit is contained in:
protolambda 2021-05-22 18:52:29 +02:00
parent 4c02dbadd0
commit ed912f599e
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623

View File

@ -13,7 +13,10 @@ from eth2spec.test.helpers.epoch_processing import run_epoch_processing_with
def run_process_participation_flag_updates(spec, state):
old = state.current_epoch_participation
yield from run_epoch_processing_with(spec, state, 'process_participation_flag_updates')
assert state.current_epoch_participation == [0] * len(state.validators)
assert state.previous_epoch_participation == old
@with_altair_and_later