From cfc66a3794c4f102af9661fa417f4dd2b04893a5 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Mon, 7 Jun 2021 16:36:18 -0600 Subject: [PATCH] patch tests --- specs/altair/beacon-chain.md | 2 +- .../altair/block_processing/test_process_sync_aggregate.py | 2 +- tests/core/pyspec/eth2spec/test/helpers/block_processing.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/altair/beacon-chain.md b/specs/altair/beacon-chain.md index 5e5d9abf8..3bd82aec8 100644 --- a/specs/altair/beacon-chain.md +++ b/specs/altair/beacon-chain.md @@ -44,7 +44,7 @@ - [Block processing](#block-processing) - [Modified `process_attestation`](#modified-process_attestation) - [Modified `process_deposit`](#modified-process_deposit) - - [Sync committee processing](#sync-committee-processing) + - [Sync aggregate processing](#sync-aggregate-processing) - [Epoch processing](#epoch-processing) - [Justification and finalization](#justification-and-finalization) - [Inactivity scores](#inactivity-scores) diff --git a/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py b/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py index b0a294c85..fa7f89fdc 100644 --- a/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py +++ b/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py @@ -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. """ # 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 'sync_aggregate', block.body.sync_aggregate if expect_exception: diff --git a/tests/core/pyspec/eth2spec/test/helpers/block_processing.py b/tests/core/pyspec/eth2spec/test/helpers/block_processing.py index 676d8cb6d..d2ec4a111 100644 --- a/tests/core/pyspec/eth2spec/test/helpers/block_processing.py +++ b/tests/core/pyspec/eth2spec/test/helpers/block_processing.py @@ -25,8 +25,8 @@ def get_process_calls(spec): 'process_voluntary_exit': lambda state, block: for_ops(state, block.body.voluntary_exits, spec.process_voluntary_exit), # Altair - 'process_sync_committee': - lambda state, block: spec.process_sync_committee(state, block.body.sync_aggregate), + 'process_sync_aggregate': + lambda state, block: spec.process_sync_aggregate(state, block.body.sync_aggregate), # Merge 'process_application_payload': lambda state, block: spec.process_application_payload(state, block.body),