Sitelet https://web.archive.org/web/20210601220108/https://github.com/ethereum/eth2.0-specs/pull/2119
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add attestation test for off by one committee index #2119

Merged
merged 2 commits into from Nov 3, 2020
Merged

Conversation

@djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Nov 3, 2020

Add test to cover off-by-one committee index case found by beaconfuzz -- prysmaticlabs/prysm#7684

@djrtwo djrtwo force-pushed the att-test branch from 2126b3b to a8c1d21 Nov 3, 2020
Copy link
Contributor

@protolambda protolambda left a comment

Some minor things, looks good otherwise

current_epoch = spec.get_current_epoch(state)
committee_count = spec.get_committee_count_per_slot(state, current_epoch)

attestation = get_valid_attestation(spec, state, index=0, signed=True)

This comment has been minimized.

@protolambda

protolambda Nov 3, 2020
Contributor

Had some doubt about signed=True when BLS is disabled, but it should still work, it just uses a different global BLS mock to sign, instead of not signing at all.

This comment has been minimized.

@djrtwo

djrtwo Nov 3, 2020
Author Contributor

yeah, It's not really needed with the never_bls. I'll remove

Co-authored-by: Diederik Loerakker <proto@protolambda.com>
@djrtwo djrtwo force-pushed the att-test branch from 0f4c1b1 to 276ca6d Nov 3, 2020
Copy link
Contributor

@protolambda protolambda left a comment

LGTM

@protolambda protolambda merged commit a3e023a into v1.0-candidate Nov 3, 2020
10 checks passed
10 checks passed
ci/circleci: build_deposit_contract Your tests passed on CircleCI!
Details
ci/circleci: checkout_specs Your tests passed on CircleCI!
Details
ci/circleci: codespell Your tests passed on CircleCI!
Details
ci/circleci: install_deposit_contract_web3_tester Your tests passed on CircleCI!
Details
ci/circleci: install_pyspec_test Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: table_of_contents Your tests passed on CircleCI!
Details
ci/circleci: test Your tests passed on CircleCI!
Details
ci/circleci: test_deposit_contract Your tests passed on CircleCI!
Details
ci/circleci: test_deposit_contract_web3_tests Your tests passed on CircleCI!
Details
@protolambda protolambda deleted the att-test branch Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants