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

tests(app): 🙅 app rejects invalid auth signatures #4182

Merged

Conversation

cratelyn
Copy link
Contributor

@cratelyn cratelyn commented Apr 9, 2024

fixes #4050. see also #3588.

this introduces a test case that demonstrates that transactions' validator definition actions must have a valid authentication signature, or the validator will not be added to the set of known validators.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    this is a test case.

fixes #4050. see also #3588.

this introduces a test case that demonstrates that transactions'
validator definition actions must have a valid authentication signature,
or the validator will not be added to the set of known validators.
@cratelyn cratelyn added A-staking Area: Design and implementation of staking and delegation A-testing Area: Relates to testing of Penumbra A-mock-consensus Area: Relates to the mock consensus engine labels Apr 9, 2024
@cratelyn cratelyn added this to the Sprint 4 milestone Apr 9, 2024
@cratelyn cratelyn self-assigned this Apr 9, 2024
@cratelyn cratelyn requested a review from erwanor April 10, 2024 18:13
@erwanor
Copy link
Member

erwanor commented Apr 11, 2024

This is a good test to have and a pretty slick example of using mock consensus to write app-level tests.

@erwanor erwanor merged commit d8fcc9d into main Apr 11, 2024
8 checks passed
@erwanor erwanor deleted the kate/app-rejects-validator-definitions-with-invalid-auth-sigs branch April 11, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mock-consensus Area: Relates to the mock consensus engine A-staking Area: Design and implementation of staking and delegation A-testing Area: Relates to testing of Penumbra
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

tests: 🙅 mock consensus test that validator definition with invalid auth sig are rejected
2 participants