Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Yac gate propagates correct round to Synchronizer #2231

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

igor-egorov
Copy link
Contributor

@igor-egorov igor-egorov commented Apr 16, 2019

Signed-off-by: Igor Egorov [email protected]

Description of the Change

The case when a node is not voted yet but has received votes for a round is possible.
That was a root cause of a rare issue, when a node was not switched to the next round (when reject commit message arrived).
As a result, the whole network can stop working (if there are enough of that buggy peers).

The change brings the correct round number propagation from Yac gate to Synchronizer.
Thus the peer goes to the correct round despite what was happen or received.

The new tests are created (yac_gate_test -> CommitFromTheFuture tests)

Benefits

Proper Yac gate behavior.

Possible Drawbacks

¯\(°_o)/¯

Usage Examples or Tests

yac_gate_test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant