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

Proposer slashing tests #1010

Closed
wants to merge 2 commits into from

Conversation

jannikluhn
Copy link
Contributor

Add tests for propose slashing as described in #927.

Follows pretty much the structure of the already existing deposit tests.

What's missing are tests with invalid header signatures, and the existing ones aren't properly signed. I think particular for this and in general for all test generators it would be nice to have some additional helper functions that make it easier to create such objects (signed headers, state with validator i exited and j slashed, etc.)

@protolambda
Copy link
Collaborator

Similarly with test generation presented in #999 (comment here):

Status update: we've unified the pytests; we can generate test-vectors from these tests now. So the format in this PR is not quite right anymore, as it would be more useful to make these tests part of the unified tests. I'll port over the code from here that presents new edge case coverage 👍

@protolambda protolambda mentioned this pull request May 11, 2019
@protolambda
Copy link
Collaborator

New tests included in #1052, closing this.

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

Successfully merging this pull request may close these issues.

3 participants