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

Merely including a vote which is not a descendent of the round target, should not disqualify a commit message #113

Open
drskalman opened this issue Mar 20, 2020 · 1 comment

Comments

@drskalman
Copy link
Contributor

drskalman commented Mar 20, 2020

This refers to these lines of the code:

// check that all precommits are for blocks higher than the target

We should not simply report bad commit if we encounter a vote for a block that is not a descendent of the target because the sender might have included the vote as a proof of equivocation and the equivocator might have voted on a non-descendent of the target.

@drskalman drskalman changed the title Merely including a vote which is not a descendent of the round base, should not disqualify a commit message Merely including a vote which is not a descendent of the round target, should not disqualify a commit message Mar 20, 2020
@andresilva
Copy link
Contributor

andresilva commented Mar 20, 2020

The reason we're doing this is that currently we wouldn't handle such vote (and note the equivocation). The first check we do when receiving a vote is whether it is a descendent of (or equal to) the current round base, otherwise we do not process it (https://github.com/paritytech/finality-grandpa/blob/master/src/voter/voting_round.rs#L341).

I guess ideally we should be able to track this vote as misbehavior, since the voter isn't following the voting rules.

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

No branches or pull requests

2 participants