-
Notifications
You must be signed in to change notification settings - Fork 13
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
Simplify the consensus module: Move the calls to the BN out of the consensus module #19
Comments
Another Prosis
|
I agree that coming to consensus on a duty separate to a BN is much cleaner, however I think Aditya has gone down the route proposed due to sometimes needing a BN to be able to decide on what should be the consensus block, hinted at here. The implication is, in a simple BFT game, whatever the leader proposes that gets the required number of approvals from others should be the consensus/correct pick, however, it might not objectively be the correct pick in real life, it's just what the leader proposed and most people agreed to, the actual 'correct' choice for a duty would involve applying LMD-GHOST to the candidate duty, and rejecting the proposal if the candidate is not the fork with the heaviest weight. (However this has latency issues so it's not included in scope as mentioned in the above link) If we didn't cross check candidate duties against a BN to see if it follows the fork choice rule correctly, we could unwittingly enable a balancing attack on the main network, because our DVs could be convinced to vote on things that are valid, but not the most correct as per LMD-GHOST, potentially enabling a sophisticated attacker to pull off short re-orgs with our support due to DVs not being able to include LMD-GHOST into our consensus algorithm. |
Thanks @OisinKyne for raising this point. In this document, I have started exploring some of the possible design solutions for checking that the block proposed is on the correct fork. |
Currently, the consensus module of a node is expected to communicate with the BN to retrieve the data to propose when the node becomes the leader of the current consensus instance. This creates a dependency between the consensus engine and the BN.
This issue proposes to remove such a dependency by moving the call to the BN asking for the data to propose out of the consensus engine.
In this case, the distributed consensus module would
valid
vi
by each of the nodes participating in the protocolvo
is such that:valid(vo) = True
vo
corresponds to one of the valuesvi
provided in input to one of the nodes participating in the protocol.Pros
Cons
The text was updated successfully, but these errors were encountered: