From 513c44bd3d19c70da61359376dc440fc86bddc23 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 8 May 2019 08:38:14 -0600 Subject: [PATCH] add back in empty attestation test --- .../block_processing/test_process_attestation.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test_libs/pyspec/tests/block_processing/test_process_attestation.py b/test_libs/pyspec/tests/block_processing/test_process_attestation.py index 165f0c84a..c986cc4c8 100644 --- a/test_libs/pyspec/tests/block_processing/test_process_attestation.py +++ b/test_libs/pyspec/tests/block_processing/test_process_attestation.py @@ -142,3 +142,14 @@ def test_non_empty_custody_bitfield(state): pre_state, post_state = run_attestation_processing(state, attestation, False) return pre_state, attestation, post_state + + +def test_empty_aggregation_bitfield(state): + attestation = get_valid_attestation(state) + state.slot += spec.MIN_ATTESTATION_INCLUSION_DELAY + + attestation.aggregation_bitfield = b'\x00' * len(attestation.aggregation_bitfield) + + pre_state, post_state = run_attestation_processing(state, attestation) + + return pre_state, attestation, post_state