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

Integrate VID Vote and Cert #2004

Merged
merged 4 commits into from
Nov 9, 2023
Merged

Integrate VID Vote and Cert #2004

merged 4 commits into from
Nov 9, 2023

Conversation

bfish713
Copy link
Collaborator

@bfish713 bfish713 commented Nov 6, 2023

Closes: #2013

@bfish713 bfish713 marked this pull request as ready for review November 6, 2023 18:19
shenkeyao
shenkeyao previously approved these changes Nov 7, 2023
Copy link
Member

@shenkeyao shenkeyao left a comment

Choose a reason for hiding this comment

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

Only a nit comment.

MessageKind::<TYPES, I>::from_consensus_message(SequencingMessage(Right(
CommitteeConsensusMessage::VidVote(vote.clone()),
))),
TransmitType::Direct,
Some(membership.get_leader(vote.get_view())), // TODO who is VID leader? https://github.com/EspressoSystems/HotShot/issues/1699
Some(membership.get_leader(vote.get_view_number())), // TODO who is VID leader? https://github.com/EspressoSystems/HotShot/issues/1699
Copy link
Member

Choose a reason for hiding this comment

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

Nit: We could remove this TODO since the linked issue has been closed.

.unwrap()
.unwrap();
let vid_vote = vid_exchange.create_vid_message(block.commit(), ViewNumber::new(2), vote_token);
let vid_vote = VIDVote2::create_signed_vote(
Copy link
Member

Choose a reason for hiding this comment

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

So nice that the vote token + message creation are now combined into one function. 👍

dailinsubjam
dailinsubjam previously approved these changes Nov 7, 2023
Copy link
Contributor

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

@bfish713 bfish713 merged commit 174407e into develop Nov 9, 2023
4 of 5 checks passed
@bfish713 bfish713 deleted the bf/vid-cert-vote branch November 9, 2023 14:47
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.

Create New VID Vote and Certificate types
3 participants