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

Always run the election after block finalization #639

Merged
merged 1 commit into from
Nov 24, 2019
Merged

Always run the election after block finalization #639

merged 1 commit into from
Nov 24, 2019

Conversation

asaj
Copy link
Contributor

@asaj asaj commented Nov 24, 2019

Description

This PR fixes a discrepancy between block proposal creation and block proposal verification. In the former, the block was finalized after the election was run, while in the latter, the block was finalized before the election was run. When block finalization affects the results of the election (as it sometimes will via rewards to voters), this would lead to proposals that would fail to be verified.

Tested

By running the end-to-end tests with 10 validators multiple times.

Other changes

  • None

Backwards compatibility

Not backwards compatible

@nambrot nambrot assigned asaj and unassigned nambrot Nov 24, 2019
@asaj asaj added the automerge label Nov 24, 2019
@asaj
Copy link
Contributor Author

asaj commented Nov 24, 2019

End-to-end tests are broken in the monorepo due to celo-org/celo-monorepo#1838, merging anyway to unblock the integration deployment.

@asaj asaj merged commit 09a217f into master Nov 24, 2019
@asaj asaj deleted the asaj/bug branch November 24, 2019 22:52
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.

3 participants