-
Notifications
You must be signed in to change notification settings - Fork 1
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
Seperate MaxQuorums #15
Conversation
Apologies! |
@@ -184,7 +184,15 @@ HighestQCOverQC(l) == | |||
Max2(a,b) == IF a > b THEN a ELSE b | |||
Min2(a,b) == IF a < b THEN a ELSE b | |||
|
|||
MaxQuorum(l, m, default) == | |||
MaxCrashQuorum(l, m, default) == |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also make the quorum a parameter of MaxCrashQuorum
.
MaxQuorum(Q, l, m, default) ==
LET RECURSIVE RMaxQuorum(_)
RMaxQuorum(i) ==
IF i = default THEN default
ELSE IF \E q \in Q: \A n \in q: m[n] >= i
THEN i ELSE RMaxQuorum(i-1)
IN RMaxQuorum(Len(l))
The definitions of Lines 68 to 71 in 9a611a4
|
You change them when you change the number of replicas. N=4 is a special case where they are the same |
I never touched 6a6c862#diff-bb74f8203fb9704ca17cbe4e4b2335f443a4659bed373276a16ccb626a989b81R49-R53 |
Sorry I meant to say "You change them" not "You changed them" as in you can change them if you want to vary the number of nodes |
Fixing a bug introduced during the refactoring of
MaxQuorum
035b5ae#diff-bb74f8203fb9704ca17cbe4e4b2335f443a4659bed373276a16ccb626a989b81L257. These two calculations were using different quorums (CQ for crash quorum and BQ for Byzantine quorum), when they were merged they were both switched to BQCC @lemmy