Skip to content

Save current block's validator in the state #1922

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

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

remagpie
Copy link
Contributor

@remagpie 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.

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 save-current-validator branch from 8e9d256 to c75cce7 Compare December 10, 2019 05:45
@remagpie remagpie force-pushed the save-current-validator branch 2 times, most recently from 5203e25 to 33152a2 Compare December 10, 2019 06:46
@remagpie remagpie force-pushed the save-current-validator branch from 33152a2 to c29b1bf Compare December 10, 2019 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants