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

Drop status td field in eth69 rlp encoding #14292

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yohkaz
Copy link
Contributor

@yohkaz yohkaz commented Feb 7, 2025

(potentially) Closes #12194

Continued with the option approach, but implemented a custom PartialEq in which:

@yohkaz yohkaz marked this pull request as ready for review February 7, 2025 02:24
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

okay, looks like supporting both in one struct isn't super ideal -.- sorry about this

can we start by introducing a new struct StatusEth69 that is the same as status but doesn't have the totaldifficulty?

}
}

impl Encodable for Status {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I've thought about this a bit, and now that I'm looking at this,

trying to squeeze these into one type is not very ideal.

I'd like to approach this differently by rolling dedicated version types, that should be easier to manage then doing encoding like that.

@mattsse mattsse added the A-networking Related to networking in general label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support upcoming Eth69 Status message
2 participants