Update tests/core/pyspec/eth2spec/test/altair/transition/test_transition.py

This commit is contained in:
Alex Stokes 2021-05-20 12:07:46 -07:00 committed by GitHub
parent d04ecf16b1
commit b9ad8bca00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,7 +371,7 @@ def test_transition_with_random_half_participation(state, fork_epoch, spec, post
rng = random.Random(2020)
def _drop_random_half(_slot, _index, indices):
# still finalize, but drop some attestations
# drop enough attestations to not finalize
committee_len = len(indices)
assert committee_len >= 2
filter_len = committee_len // 2