Skip to content

Conversation

@hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Nov 18, 2022

Thanks @ajsutton for proposing this new test case.

  • [no substantive change] move test_exit_and_bls_change to test_success_exit_and_bls_change
  • add test_invalid_double_bls_changes_same_block
    • a block includes the same BLSToExecutionChange of the same validator. The first BLSToExecutionChange will succeed but the second will fail due to the assertion assert validator.withdrawal_credentials[:1] == BLS_WITHDRAWAL_PREFIX.

@hwwhww hwwhww added the testing CI, actions, tests, testing infra label Nov 18, 2022
@hwwhww hwwhww requested a review from djrtwo November 18, 2022 09:34
Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

looks good!

@hwwhww hwwhww changed the title Add test_fail_double_bls_changes_in_same_block Add more double/duplicate operations tests Nov 18, 2022
@hwwhww
Copy link
Contributor Author

hwwhww commented Nov 18, 2022

reviewed and added new double operation tests:

  • existing old tests:
    • test_invalid_double_same_proposer_slashings_same_block
    • test_invalid_double_same_attester_slashing_same_block
    • test_invalid_double_validator_exit_same_block
  • added new tests in this PR:
    • test_double_same_attestation_same_block note: it's valid
    • test_invalid_double_same_deposit_same_block

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

great!

@hwwhww hwwhww merged commit c345f30 into dev Nov 18, 2022
@hwwhww hwwhww deleted the double-bls-changes branch November 18, 2022 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants