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

IF: implement block_header_state_core and its state transition #1923

Merged
merged 6 commits into from
Nov 22, 2023

Conversation

linh2931
Copy link
Member

Part 1 of #1912. It implements block_header_state_core (to hold hotstuff core information associated with each block) and its state transitions.

Extensive unit tests are added.

Part 2 for qc_chain to track the state will be in a separate PR.

libraries/chain/include/eosio/chain/block_header_state.hpp Outdated Show resolved Hide resolved
Comment on lines 26 to 28
block_header_state_core::block_header_state_core( uint32_t last_final_blk_ht,
std::optional<uint32_t> final_on_strong_qc_blk_ht,
std::optional<uint32_t> last_qc_blk_ht )
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe spell out block_height everywhere (instead of blk_ht)so it is consistent throughout (like on line 34).

libraries/chain/block_header_state.cpp Outdated Show resolved Hide resolved
@linh2931 linh2931 merged commit a05428a into hotstuff_integration Nov 22, 2023
29 checks passed
@linh2931 linh2931 deleted the block_header_state_core branch November 22, 2023 16:28
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.

IF: Unification: Implement block_header_state_core and new algorithm to support transitions of that core
3 participants