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

Sign BlsToExecutionChange w/ GENESIS_FORK_VERSION #3880

Merged
merged 3 commits into from
Jan 13, 2023

Conversation

ethDreamer
Copy link
Member

Issue Addressed

Additional Info

We appear to have already implemented the new gossip validation condition. Not sure where the spec tests are though.. will look and add to this PR.

Copy link
Member

@realbigsean realbigsean left a comment

Choose a reason for hiding this comment

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

LGTM

@realbigsean
Copy link
Member

Oh actually I think we do need to change this in order to comply with the gossip validation change ->

https://github.com/sigp/lighthouse/blob/capella/beacon_node/network/src/beacon_processor/worker/gossip_methods.rs#L1220

We need to not penalize peers at all if we match on this error Err(Error::BlsToExecutionChangeBadFork(_))

@realbigsean
Copy link
Member

realbigsean commented Jan 13, 2023

Also this looks like it will reject local BlsToExecutionChange messages prior to the fork but I think accepting and keeping them in the pool from local prior to the fork would be much better UX. But we can implement that in a separate PR if you don't want to here.

@@ -1217,11 +1217,13 @@ impl<T: BeaconChainTypes> Worker<T> {
);
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Reject);
Copy link
Member

Choose a reason for hiding this comment

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

I think we similarly need to change this to MessageAcceptance::Ignore on BeaconChainError::BlsToExecutionChangeBadFork

Copy link
Member

Choose a reason for hiding this comment

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

updated here: 1319683

@realbigsean realbigsean merged commit f47fc9d into sigp:capella Jan 13, 2023
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.

2 participants