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 PBFT results accounting #171

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Fix PBFT results accounting #171

merged 1 commit into from
Oct 10, 2024

Conversation

Maelkum
Copy link
Collaborator

@Maelkum Maelkum commented Oct 10, 2024

This PR fixes how the head node accounts for PBFT results from cluster replicas, when aggregating results. The head node expects f+1 identical results, where f is the number of faulty replicas in a PBFT cluster.

We were not properly updating the map where we're aggregating the results coming from the nodes, which manifested when running PBFT consensus on >= 7 nodes.

Also, some clarity improvements - worker nodes refuse to join a PBFT cluster with less than four nodes. However, the head node does not vet the incoming execution request that this threshold is met.

Not, head node will discard execution requests that:
a) request PBFT consensus and have the number of nodes explicitly set to a value <= 4
b) request PBFT consensus with an unspecified number of nodes (-1, whoever comes can join), but less than 4 nodes apply to a roll call

@Maelkum Maelkum requested a review from dmikey October 10, 2024 10:20
@Maelkum Maelkum self-assigned this Oct 10, 2024
@dmikey dmikey merged commit 2682118 into main Oct 10, 2024
5 checks passed
@dmikey dmikey deleted the pbft-cluster-size-fix branch October 10, 2024 23: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.

2 participants