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: finalizer policy to block header extension #2058

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Jan 9, 2024

Add finalizer policy to block header extension. Needed for reference contract tests.

@heifner heifner requested review from greg7mdp and linh2931 January 9, 2024 15:13
Copy link
Contributor

@greg7mdp greg7mdp left a comment

Choose a reason for hiding this comment

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

Looks great!

@@ -595,6 +595,10 @@ struct building_block {
[&](building_block_if& bb) -> R { return std::forward<F>(f)(bb); }}, v);
}

void set_proposed_finalizer_policy(const finalizer_policy& fin_pol) {
std::visit([&](auto& bb) { return bb.new_finalizer_policy = fin_pol; }, v);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
std::visit([&](auto& bb) { return bb.new_finalizer_policy = fin_pol; }, v);
std::visit([&](auto& bb) { bb.new_finalizer_policy = fin_pol; }, v);

@heifner heifner merged commit 0545470 into hotstuff_integration Jan 9, 2024
26 checks passed
@heifner heifner deleted the GH-2033-set-finalizers branch January 9, 2024 16:41
@heifner heifner added the OCI Work exclusive to OCI team label Jan 9, 2024
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: INTERNALS
summary: Add finalizer policy to block header extension.
Note: end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants