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

Fix bug in unjail-validator that crashed testnet v0.20.1 #1793

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

brentstone
Copy link
Collaborator

@brentstone brentstone commented Aug 8, 2023

Describe your changes

Resolves a bug in the error handling of fn unjail_validator.

This bug led to a failure in the testnet based on v0.20.1. In the testnet, a validator who had previously been jailed, and was eligible to unjail themselves, seems to have submitted an unjail transaction twice. The second submission mistakenly did not throw an error, leading to a second insertion of the validator back into the consensus set, which then led to a panic from CometBFT for duplicate validators.

closes #1790

Indicate on which release or other PRs this topic is based on

v0.20.1

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@brentstone
Copy link
Collaborator Author

pls update wasm

juped added a commit that referenced this pull request Aug 9, 2023
…to main

* namada/brent/fix-unjail-bug:
  [ci] wasm checksums update
  changelog: add #1793
  pos/tests: unit test for unjailing
  pos/lib: fix bug in error-catching
@sug0
Copy link
Contributor

sug0 commented Aug 10, 2023

unrelated to #1790, @Fraccaman confirmed this in a devnet with this patchset

Fraccaman added a commit that referenced this pull request Aug 11, 2023
* origin/brent/fix-unjail-bug:
  [ci] wasm checksums update
  changelog: add #1793
  pos/tests: unit test for unjailing
  pos/lib: fix bug in error-catching
@Fraccaman Fraccaman mentioned this pull request Aug 11, 2023
Fraccaman added a commit that referenced this pull request Aug 13, 2023
* origin/brent/fix-unjail-bug:
  [ci] wasm checksums update
  changelog: add #1793
  pos/tests: unit test for unjailing
  pos/lib: fix bug in error-catching
@Fraccaman Fraccaman merged commit a070fd3 into main Aug 14, 2023
@Fraccaman Fraccaman deleted the brent/fix-unjail-bug branch August 14, 2023 09:53
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.

Apparent duplicate votes on validator set update vote extensions
4 participants