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 a multi committee attestation spec test #3770

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nazarhussain
Copy link

At Lodestar we encounter a scenario for an attestation from multi-committee was failing. This could have identified earlier if we had a spec for this scenario.

@nazarhussain
Copy link
Author

The linting tasks make lint is failing locally for me, so why could not lint the code.

@@ -105,13 +105,24 @@ def get_valid_attestation(spec,
if index is None:
index = 0

attestation_data = build_attestation_data(spec, state, slot=slot, index=index, beacon_block_root=beacon_block_root)
if isinstance(index, (list, tuple)):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be cleaner to have a separate helper that capable of creating multi committee attestations and reuses get_valid_attestation as the underlying call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants