-
Notifications
You must be signed in to change notification settings - Fork 100
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
Consensus node error while recovering from crash - f+1 commits and still changed view #780
Comments
@ZhangTao1596, I am not sure this is just for dBFT 3.0. But also for dBFT 2.0. |
In fact, it is even described in the current code. I think we wrote that some long time ago. " // A possible attack can happen if the last node to commit is malicious and either sends change view after his |
It also looks like this logic is not correct anymore: public bool NotAcceptingPayloadsDueToViewChanging => ViewChanging && !MoreThanFNodesCommittedOrLost;
public bool MoreThanFNodesCommittedOrLost => (CountCommitted + CountFailed) > F; |
@vncoelho Could you add a test in order to ensure that v2 is affected? |
I could, but all test structure was removed when dbft was migrated to a Module, from neo core to here. We need to add that previous infrastructure for akka testing here. |
We need to mock everything here as we used to do before, @shargon. Do you have a good direction for starting it to work? I could them add all tests. (ping @erikzhang) |
I think this problem has always exists in master branch. |
@ZhangTao1596, this point you mentioned is another problem related to the |
Bug found while testing dBFT 3.0 PR.
However, it is suspected that this can also happen on current version:
The text was updated successfully, but these errors were encountered: