patch tests
This commit is contained in:
parent
09b6fb0e64
commit
cfc66a3794
|
@ -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)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue