-
Notifications
You must be signed in to change notification settings - Fork 83
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
core/qbft: calculate q and f #503
Conversation
Codecov Report
@@ Coverage Diff @@
## main #503 +/- ##
==========================================
+ Coverage 56.44% 56.52% +0.07%
==========================================
Files 87 87
Lines 7979 7983 +4
==========================================
+ Hits 4504 4512 +8
+ Misses 2874 2871 -3
+ Partials 601 600 -1
Continue to review full report at Codecov.
|
@@ -39,7 +39,7 @@ type Value[V any] interface { | |||
type Transport[I any, V Value[V]] struct { | |||
// Broadcast sends a message with the provided fields to all other | |||
// processes in the system (including this process). | |||
Broadcast func(typ MsgType, instance I, source int64, round int64, value V, pr int64, pv V, justify []Msg[I, V]) | |||
Broadcast func(typ MsgType, instance I, source int64, round int64, value V, pr int64, pv V, justification []Msg[I, V]) |
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.
Maybe
Broadcast func(typ MsgType, instance I, source int64, round int64, value V, pr int64, pv V, justification []Msg[I, V]) | |
Broadcast func(typ MsgType, instance I, source int64, round int64, value V, pr int64, pv V, justifications []Msg[I, V]) |
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.
technically it is a single justification containing multiple messages...
// Faulty is the maximum faulty process count for the system. | ||
Faulty int | ||
// Nodes is the total number of nodes/processes participating in consensus. | ||
Nodes int |
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.
😏
Calculates
Quorum
andFaulty
fromNodes
as per Roberto suggestion. Also using his paper for the formulas.Also rename
justify
tojustification
category: refactor
ticket: #445
feature_set: alpha