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

Silently skip deposits with invalid proof in process_deposit #589

Merged
merged 4 commits into from
Feb 9, 2019

Conversation

Nashatyrev
Copy link
Member

What's wrong:

process_deposit has the

assert validate_proof_of_possession(...)

statement which aborts processing of the block containing a deposit with invalid proof resulting this block being invalid.
Thus a proposer needs to skip deposits with invalid proofs when composing a block. The same way malicious/incorrect proposer may skip a number of valid deposits.

Suggestion:

Include all deposits to blocks (this is verified by constantly incremented deposit index) but silently ignore deposits with invalid proofs on block transition: i.e. not change the validator registry/balances

vbuterin added a commit that referenced this pull request Feb 9, 2019
vbuterin and others added 3 commits February 9, 2019 11:10
…d_proof` variable contains a valid proof as opposed to just being a bool.

Co-Authored-By: Nashatyrev <Nashatyrev@users.noreply.github.com>
…d_proof` variable contains a valid proof as opposed to just being a bool.

Co-Authored-By: Nashatyrev <Nashatyrev@users.noreply.github.com>
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

3 participants