Skip to content

fix(privval): re-enable some vote extension-related sanity checks when signing a vote#3649

Merged
sergio-mena merged 7 commits intomainfrom
sergio/3642-reactivate-some-ve-checks
Aug 9, 2024
Merged

fix(privval): re-enable some vote extension-related sanity checks when signing a vote#3649
sergio-mena merged 7 commits intomainfrom
sergio/3642-reactivate-some-ve-checks

Conversation

@sergio-mena
Copy link
Collaborator

@sergio-mena sergio-mena commented Aug 8, 2024

Closes #3642

When vote extensions are disabled, we still need to (sanity-)check that:

  • Prevotes don't contain an extension signature
  • nil precommits don't contain an extension signature

This PR is re-enabling those checks, in alignment with #3565 in v0.38.x


PR checklist

  • [ ] Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • [ ] Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@sergio-mena sergio-mena requested a review from a team as a code owner August 8, 2024 16:46
@sergio-mena sergio-mena requested a review from a team August 8, 2024 16:46
@sergio-mena sergio-mena self-assigned this Aug 8, 2024
@sergio-mena sergio-mena added the bug Something isn't working label Aug 8, 2024
@sergio-mena sergio-mena changed the title fix(types): re-enable some vote extension-related sanity checks when signing a vote fix(privval): re-enable some vote extension-related sanity checks when signing a vote Aug 8, 2024
Copy link
Collaborator

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@sergio-mena sergio-mena added this pull request to the merge queue Aug 9, 2024
Merged via the queue into main with commit a33b8ac Aug 9, 2024
@sergio-mena sergio-mena deleted the sergio/3642-reactivate-some-ve-checks branch August 9, 2024 08:05
@melekes
Copy link
Collaborator

melekes commented Jan 11, 2025

@mergify backport v1.x

@mergify
Copy link
Contributor

mergify bot commented Jan 11, 2025

backport v1.x

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Jan 11, 2025
…n signing a vote (#3649)

Closes #3642

When vote extensions are disabled, we still need to (sanity-)check that:

* Prevotes don't contain an extension signature
* `nil` precommits don't contain an extension signature

This PR is re-enabling those checks, in alignment with #3565 in
`v0.38.x`

---

#### PR checklist

- ~[ ] Tests written/updated~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- ~[ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit a33b8ac)

# Conflicts:
#	.changelog/v1.0.0/bug-fixes/3642-re-enable-vote-extension-checks.md
#	go.mod
#	go.sum
mergify bot added a commit that referenced this pull request Jan 13, 2025
…n signing a vote (backport #3649) (#4789)

Closes #3642

When vote extensions are disabled, we still need to (sanity-)check that:

* Prevotes don't contain an extension signature
* `nil` precommits don't contain an extension signature

This PR is re-enabling those checks, in alignment with #3565 in
`v0.38.x`

---

#### PR checklist

- ~[ ] Tests written/updated~
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- ~[ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3649 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Sergio Mena <sergio@informal.systems>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working privval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

privval: consensus should tell the privval whether to sign vote extensions

2 participants