-
Notifications
You must be signed in to change notification settings - Fork 182
consensus: the certain case with six validators or less #1462
Conversation
I believe that four consensus nodes should allow one faulty node.
|
@jiseongnoh |
c55819d
to
7021d00
Compare
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.
@mckim19 Can I know why did you change >
to >=
?
@aidan-kwon |
Co-authored-by: yumiel yoomee1313 <yumiel.ko@krustuniverse.com>
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.
Looks good to me. Thank you.
Proposed changes
If the number of validators is 6 or less, the fork could be occurred by round change and byzantine case.
Becuase there are two quorum in the one block.
The quorum size is 2F+1 at the moment.
If the number of validators is 2 or 3, there is a possibility of multiple consensus in one block becuase F = 0 and quorum is 1.
Also, if the number of validators is 6, there is a possibility that there will be two consensus in one block becuase F = 1 and the quorum is 3.
In incident situation, the number of validators could be reduced for solving the problem.
These cases are very exceptional, but this PR is needed to completely eliminate the possibility of a fork.
In addition, when configuring the service chain and private network with a small number of nodes, this PR enhances network stability.
Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
$ make test
)Related issues
#1403