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: reenable weak vote related tests #2240

Merged
merged 2 commits into from
Feb 17, 2024
Merged

Conversation

linh2931
Copy link
Member

@linh2931 linh2931 commented Feb 17, 2024

Prior to #2135, weak votes and strong votes were signed using the same digest. The weak votes related tests in finality_tests.cpp were constructed based on the same digest; those tests had to be disabled to get #2135 to move ahead.

This PR fixes the issue by implementing controller::get_strong_digest_by_id to return strong digest of a block given a block ID, making tester::set_finalizers to return private keys of local finalizer, and signing weak votes. All disabled tests have been re-enabled.

Resolved #2193

@linh2931 linh2931 requested review from heifner and greg7mdp February 17, 2024 01:29
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 good, small typo on line 300 (interwined_weak_votes).

@linh2931 linh2931 merged commit 999e5c3 into hotstuff_integration Feb 17, 2024
26 checks passed
@linh2931 linh2931 deleted the update_weak_tests branch February 17, 2024 17:44
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: TEST
summary: Enable more complex voting and finalizer tests by creating a distinct signed digest for strong votes.
Note:end

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.

4 participants