Skip to content
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

Introduce CannotLead #2169

Merged
merged 4 commits into from
May 29, 2020
Merged

Introduce CannotLead #2169

merged 4 commits into from
May 29, 2020

Conversation

edsko
Copy link
Contributor

@edsko edsko commented May 29, 2020

Before when a node had an outdated (or conversely not-yet-active) it had no way to indicate that it was a leader but that it couldn't lead before the key was wrong. We now distinguish these two cases, although we don't yet take advantage of this. We should: both PBFT and TPraos should check if the key matches the delegation state, and if not, say that they cannot lead, rather than produce an invalid block.

edsko added 3 commits May 29, 2020 10:57
This makes the next step a bit cleaner.
This will be required for the next commit.
Before when a node had an outdated (or conversely not-yet-active) it had no way
to indicate that it was a leader but that it couldn't lead before the key was
wrong. We now distinguish these two cases, although we don't yet take advantage
of this. We should: both PBFT and TPraos should _check_ if the key matches the
delegation state, and if not, say that they cannot lead, rather than produce an
invalid block.
@edsko edsko force-pushed the edsko/introduce-cannot-lead branch from 6090277 to 76dd3b8 Compare May 29, 2020 11:47
@edsko
Copy link
Contributor Author

edsko commented May 29, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 29, 2020

@iohk-bors iohk-bors bot merged commit bbb4ad8 into master May 29, 2020
@iohk-bors iohk-bors bot deleted the edsko/introduce-cannot-lead branch May 29, 2020 12:12
@edsko edsko mentioned this pull request May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants