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

Detect invalid proposer signature on RPC block processing #6519

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Complements

by detecting if the proposer signature is valid or not during RPC block processing. In lookup sync, if the invalid signature signature is the proposer signature, it's not deterministic on the block root. So we should only penalize the sending peer and retry. Otherwise, if it's on the body we should drop the lookup and penalize all peers that claim to have imported the block

@dapplion dapplion added the ready-for-review The code is ready for review label Oct 20, 2024
Copy link
Member

@pawanjay176 pawanjay176 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a minor nit

beacon_node/beacon_chain/src/block_verification.rs Outdated Show resolved Hide resolved
@pawanjay176
Copy link
Member

Tests are failing

@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Nov 5, 2024
@dapplion dapplion force-pushed the detect-error-proposer-signature branch from 4313743 to 049f754 Compare November 21, 2024 10:27
@dapplion
Copy link
Collaborator Author

dapplion commented Jan 7, 2025

This is ready for review.

Motivation: used by #6321 to not re-download a block that has invalid body signature(s)

@dapplion dapplion added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jan 25, 2025
@pawanjay176 pawanjay176 requested a review from jxs as a code owner January 27, 2025 22:21
Copy link
Member

@pawanjay176 pawanjay176 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good mostly, not sure of the necessity of the Unknown error variant

Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
@pawanjay176 pawanjay176 added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jan 28, 2025
mergify bot added a commit that referenced this pull request Jan 28, 2025
@mergify mergify bot merged commit c6ebaba into sigp:unstable Jan 28, 2025
31 checks passed
@dapplion dapplion deleted the detect-error-proposer-signature branch January 29, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants