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

[Merged by Bors] - Complete match for has_context_bytes #3972

Closed

Conversation

realbigsean
Copy link
Member

@realbigsean realbigsean commented Feb 13, 2023

Issue Addressed

Disclaimer: I have no idea if people are using it but it shouldn't have been working so not sure why it wasn't caught

@realbigsean realbigsean changed the base branch from stable to unstable February 13, 2023 22:45
@realbigsean realbigsean added the ready-for-review The code is ready for review label Feb 13, 2023
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.

Nice catch!

_ => return false,
match self.message_name {
Protocol::BlocksByRange | Protocol::BlocksByRoot => {
!matches!(self.version, Version::V1)
Copy link
Member

Choose a reason for hiding this comment

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

Actually, it might be better if we explicitly match Version::V2 instead of excluding V1. If there's a V3 in the future, can't say for sure if that would have a similar mechanism for context bytes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added this and similar for the light client endpoint, but the fact that we're now going to handle a light client protocol + version combination that doesn't exist let me to thinking about this more broadly: #3980

@realbigsean realbigsean mentioned this pull request Feb 15, 2023
@AgeManning
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Feb 20, 2023
## Issue Addressed

- Add a complete match for `Protocol` here. 
- The incomplete match was causing us not to append context bytes to the light client protocols
- This is the relevant part of the spec and it looks like context bytes are defined https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/light-client/p2p-interface.md#getlightclientbootstrap

Disclaimer: I have no idea if people are using it but it shouldn't have been working so not sure why it wasn't caught

Co-authored-by: realbigsean <seananderson33@gmail.com>
@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Feb 20, 2023
@bors
Copy link

bors bot commented Feb 20, 2023

Build failed:

@paulhauner
Copy link
Member

I haven't re-bors'd this because we're finalizing the v3.5.0 release today (and this isn't tagged for it) and I'm not sure if this requires some testing or not.

@paulhauner paulhauner added the v3.5.1 Scheduled for March 2023 label Feb 21, 2023
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Feb 28, 2023
## Issue Addressed

- Add a complete match for `Protocol` here. 
- The incomplete match was causing us not to append context bytes to the light client protocols
- This is the relevant part of the spec and it looks like context bytes are defined https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/light-client/p2p-interface.md#getlightclientbootstrap

Disclaimer: I have no idea if people are using it but it shouldn't have been working so not sure why it wasn't caught

Co-authored-by: realbigsean <seananderson33@gmail.com>
@bors
Copy link

bors bot commented Feb 28, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Feb 28, 2023
## Issue Addressed

- Add a complete match for `Protocol` here. 
- The incomplete match was causing us not to append context bytes to the light client protocols
- This is the relevant part of the spec and it looks like context bytes are defined https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/light-client/p2p-interface.md#getlightclientbootstrap

Disclaimer: I have no idea if people are using it but it shouldn't have been working so not sure why it wasn't caught

Co-authored-by: realbigsean <seananderson33@gmail.com>
@michaelsproul
Copy link
Member

I think this needs updating for Capella (and BlobsByRange).

@michaelsproul
Copy link
Member

bors r-

@bors
Copy link

bors bot commented Feb 28, 2023

Canceled.

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-merge This PR is ready to merge. labels Feb 28, 2023
@paulhauner paulhauner added v4.0.0 Mainnet Capella release expected late March 2023 and removed v3.5.1 Scheduled for March 2023 labels Mar 5, 2023
@realbigsean
Copy link
Member Author

I think no updates are required since #4019 was merged, so I just merged with unstable and looks like CI passed

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Mar 14, 2023
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Mar 15, 2023
## Issue Addressed

- Add a complete match for `Protocol` here. 
- The incomplete match was causing us not to append context bytes to the light client protocols
- This is the relevant part of the spec and it looks like context bytes are defined https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/light-client/p2p-interface.md#getlightclientbootstrap

Disclaimer: I have no idea if people are using it but it shouldn't have been working so not sure why it wasn't caught

Co-authored-by: realbigsean <seananderson33@gmail.com>
@bors bors bot changed the title Complete match for has_context_bytes [Merged by Bors] - Complete match for has_context_bytes Mar 15, 2023
@bors bors bot closed this Mar 15, 2023
@realbigsean realbigsean deleted the light-client-protocol-match branch November 21, 2023 16:15
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
## Issue Addressed

- Add a complete match for `Protocol` here. 
- The incomplete match was causing us not to append context bytes to the light client protocols
- This is the relevant part of the spec and it looks like context bytes are defined https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/light-client/p2p-interface.md#getlightclientbootstrap

Disclaimer: I have no idea if people are using it but it shouldn't have been working so not sure why it wasn't caught

Co-authored-by: realbigsean <seananderson33@gmail.com>
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. v4.0.0 Mainnet Capella release expected late March 2023
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants