Skip to content

Multiple committees #360

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

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft

Multiple committees #360

wants to merge 28 commits into from

Conversation

twittner
Copy link
Contributor

Pair round numbers with committee IDs to allow selection of the right committee when verifying signatures and certificates.

Also require vertex payloads to have a timestamp which will be used to derive the consensus timestamp when a round is delivered.

A CommitteeVec allows keeping multiple committees and indexing them by committee ID.

twittner added 5 commits May 28, 2025 15:48
Vertices no longer contain just a round number, but a pair of round
number and committee ID. This allows validation of certificates and
signatures to select the right committee.
Require `DataSource::Data` to implement `HasTime` so that Sailfish can
build a consensus timestamp based on the committed vertices of a round.
let rbc = Rbc::new(Overlay::new(net), rcf.with_metrics(rbc_metrics));

let rbc = Rbc::new(
5 * committee.size().get(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is 5 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A magic number. The exact capacity should not matter.

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

Successfully merging this pull request may close these issues.

2 participants