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

Bugfix: LQT effect hash calculation #5075

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

cronokirby
Copy link
Contributor

Describe your changes

Seems like the effect hash calculation for LQT votes was wrong, in that it erroneously included the authorization data and proof, which would make such actions effectively impossible to construct.

This corrects things so that the effect hash is only calculated over the actual body of the vote.

Testing deferred.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • 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 breaks consensus not only with main, but also with the tentatively applied testnet upgrade 😬

@cronokirby cronokirby added the consensus-breaking breaking change to execution of on-chain data label Feb 7, 2025
Previously we were calculating the effect hash over the auth data too (woops!)
@cronokirby cronokirby force-pushed the cronokirby/lqt-effect-hash-bug branch from 6d3b677 to b413ca6 Compare February 7, 2025 22:16
@cronokirby cronokirby requested a review from erwanor February 7, 2025 22:17
@erwanor erwanor merged commit 2e43744 into protocol/lqt_branch Feb 7, 2025
10 checks passed
@erwanor erwanor deleted the cronokirby/lqt-effect-hash-bug branch February 7, 2025 22:58
conorsch added a commit that referenced this pull request Feb 10, 2025
## Describe your changes

Bumps the version in the LQT branch. Doing this to disambiguate between
active versions, in order to roll out
#5075 to the active
testnet.

## Issue ticket number and link

Refs #5010, #5075.

## Checklist before requesting a review

- [x] 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:

  > version info only, no code changes
conorsch pushed a commit that referenced this pull request Feb 14, 2025
## Describe your changes

Seems like the effect hash calculation for LQT votes was wrong, in that
it erroneously included the authorization data and proof, which would
make such actions effectively impossible to construct.

This corrects things so that the effect hash is only calculated over the
actual body of the vote.

Testing deferred.

## Checklist before requesting a review

- [x] I have added guiding text to explain how a reviewer should test
these changes.

- [x] 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 breaks consensus not only with main, but also with the
tentatively applied testnet upgrade 😬
conorsch added a commit that referenced this pull request Feb 14, 2025
## Describe your changes

Bumps the version in the LQT branch. Doing this to disambiguate between
active versions, in order to roll out
#5075 to the active
testnet.

## Issue ticket number and link

Refs #5010, #5075.

## Checklist before requesting a review

- [x] 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:

  > version info only, no code changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus-breaking breaking change to execution of on-chain data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants