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

fix: Separated justification verification for preVotes from preCommits. #798

Conversation

hMitov
Copy link
Collaborator

@hMitov hMitov commented Feb 24, 2025

Description

Separated justification verification for preVotes and preCommits. Previously, they were verified together as part of a single list.
Now, we create two distinct justifications—one for preVotes and another for preCommits.

@hMitov hMitov added this to the Fruzhin Phase 3 - M2. GRANDPA milestone Feb 24, 2025
@hMitov hMitov added the bug Something isn't working label Feb 24, 2025
@hMitov hMitov self-assigned this Feb 24, 2025
(preVotes, preCommits) -> preVotes && preCommits);

try {
boolean verified = verifiedFuture.get();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
boolean verified = verifiedFuture.get();
boolean verified = verifiedFuture.join();

You can use join() to avoid the try catch here.

Hristiyan Mitov added 2 commits February 24, 2025 13:10
JustificationVerificationException.java
@hMitov hMitov merged commit e5e52b2 into dev Feb 24, 2025
3 checks passed
@hMitov hMitov deleted the 797-Separate-preVotes-and-preCommits-justifications-in-catch-up-response branch February 24, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate justifications for preVotes from preCommits on handle catchUp response message.
3 participants