patch tests

This commit is contained in:
Danny Ryan 2021-06-07 16:36:18 -06:00
parent 09b6fb0e64
commit cfc66a3794
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
3 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@
- [Block processing](#block-processing) - [Block processing](#block-processing)
- [Modified `process_attestation`](#modified-process_attestation) - [Modified `process_attestation`](#modified-process_attestation)
- [Modified `process_deposit`](#modified-process_deposit) - [Modified `process_deposit`](#modified-process_deposit)
- [Sync committee processing](#sync-committee-processing) - [Sync aggregate processing](#sync-aggregate-processing)
- [Epoch processing](#epoch-processing) - [Epoch processing](#epoch-processing)
- [Justification and finalization](#justification-and-finalization) - [Justification and finalization](#justification-and-finalization)
- [Inactivity scores](#inactivity-scores) - [Inactivity scores](#inactivity-scores)

View File

@ -32,7 +32,7 @@ def run_sync_committee_processing(spec, state, block, expect_exception=False):
produces a pre-state and post-state (None if exception) specifically for sync-committee processing changes. produces a pre-state and post-state (None if exception) specifically for sync-committee processing changes.
""" """
# process up to the sync committee work # process up to the sync committee work
call = run_block_processing_to(spec, state, block, 'process_sync_committee') call = run_block_processing_to(spec, state, block, 'process_sync_aggregate')
yield 'pre', state yield 'pre', state
yield 'sync_aggregate', block.body.sync_aggregate yield 'sync_aggregate', block.body.sync_aggregate
if expect_exception: if expect_exception:

View File

@ -25,8 +25,8 @@ def get_process_calls(spec):
'process_voluntary_exit': 'process_voluntary_exit':
lambda state, block: for_ops(state, block.body.voluntary_exits, spec.process_voluntary_exit), lambda state, block: for_ops(state, block.body.voluntary_exits, spec.process_voluntary_exit),
# Altair # Altair
'process_sync_committee': 'process_sync_aggregate':
lambda state, block: spec.process_sync_committee(state, block.body.sync_aggregate), lambda state, block: spec.process_sync_aggregate(state, block.body.sync_aggregate),
# Merge # Merge
'process_application_payload': 'process_application_payload':
lambda state, block: spec.process_application_payload(state, block.body), lambda state, block: spec.process_application_payload(state, block.body),