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

Save current block's validator in the state #1922

Merged
merged 2 commits into from Dec 12, 2019

Conversation

@Remagpie
Copy link
Contributor

Remagpie commented Dec 9, 2019

This PR introduces the CurrentValidator state value, which represents the set of validators for this block.
It allows the tendermint consensus module to verify blocks without reading their parents.
CurrentValidator is updated at on_open_block for every block that is in the 1st era.

@Remagpie Remagpie requested review from sgkim126 and foriequal0 Dec 9, 2019
@Remagpie Remagpie force-pushed the Remagpie:save-current-validator branch from 341cab1 to 8e9d256 Dec 9, 2019
@foriequal0 foriequal0 force-pushed the CodeChain-io:snapshot branch from 246eca5 to d925fec Dec 10, 2019
CurrentValidators represent the list of validators for the current
block. Its value is the same as the NextValidators of the previous
block's state.
@Remagpie Remagpie force-pushed the Remagpie:save-current-validator branch from 8e9d256 to c75cce7 Dec 10, 2019
@Remagpie Remagpie force-pushed the Remagpie:save-current-validator branch 2 times, most recently from 5203e25 to 33152a2 Dec 10, 2019
@Remagpie Remagpie force-pushed the Remagpie:save-current-validator branch from 33152a2 to c29b1bf Dec 10, 2019
@Remagpie Remagpie merged commit 275a671 into CodeChain-io:snapshot Dec 12, 2019
10 checks passed
10 checks passed
Actions - build (macOS-10.14)
Details
Actions - clippy
Details
Actions - lint
Details
Actions - build (ubuntu-18.04)
Details
Actions - rustfmt
Details
Actions - unit test (macOS-latest)
Details
Actions - unit test (ubuntu-latest)
Details
Summary no rules match, no planned actions
Details
clahub All contributors have signed the Contributor License Agreement.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Remagpie Remagpie deleted the Remagpie:save-current-validator branch Dec 12, 2019
@Remagpie Remagpie restored the Remagpie:save-current-validator branch Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.