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

feat(eth): add remaining eth protocol message types #82

Merged
merged 22 commits into from
Oct 20, 2022

Conversation

gakonst
Copy link
Member

@gakonst gakonst commented Oct 17, 2022

WIP

crates/net/eth-wire/src/types/receipts.rs Outdated Show resolved Hide resolved
crates/net/eth-wire/src/types/receipts.rs Outdated Show resolved Hide resolved
crates/primitives/src/transaction/mod.rs Outdated Show resolved Hide resolved
crates/primitives/src/transaction/mod.rs Outdated Show resolved Hide resolved
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.

awesome, this looks pretty good,

since this is PR is a bit large, I suggest we merge al changes to primitves separately, perhaps even 1 PR for Signature, 1 PR remaining changes to primitives

crates/net/eth-wire/src/types/transactions.rs Outdated Show resolved Hide resolved
crates/primitives/src/transaction/mod.rs Outdated Show resolved Hide resolved
@onbjerg onbjerg added C-enhancement New feature or request A-devp2p Related to the Ethereum P2P protocol labels Oct 18, 2022
@Rjected Rjected force-pushed the gakonst/eth-remaining-msgs branch 2 times, most recently from 8fe6205 to 6303e80 Compare October 19, 2022 17:41
Copy link
Member Author

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

overall, love this. @Rjected final comments and you can merge

Comment on lines +51 to +52
/// The current total difficulty.
pub td: U128,
Copy link
Member Author

Choose a reason for hiding this comment

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

What is this value post merge?Did anything change in how p2p works?

Copy link
Member

Choose a reason for hiding this comment

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

these messages (NewBlock) shouldn't be broadcast post-merge

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it - let's consider feature gating them later on if we think that's right.

crates/net/eth-wire/src/types/broadcast.rs Outdated Show resolved Hide resolved
crates/net/eth-wire/src/types/state.rs Outdated Show resolved Hide resolved
Comment on lines +5 to +6
/// This message was removed in `eth/67`, only clients running `eth/66` or earlier will respond to
/// this message.
Copy link
Member Author

Choose a reason for hiding this comment

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

Should we implement both? If we don't do eth/66, then we should remove this request right?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, if we don't do eth/66 then we should remove these. I'm open minded to removing this message and supporting only eth/67. I'm not sure if clients that implement eth/66 even use this message either.

crates/net/eth-wire/src/types/transactions.rs Outdated Show resolved Hide resolved
crates/net/eth-wire/src/types/transactions.rs Outdated Show resolved Hide resolved
crates/net/eth-wire/src/types/transactions.rs Outdated Show resolved Hide resolved
crates/net/eth-wire/src/types/transactions.rs Outdated Show resolved Hide resolved
crates/net/eth-wire/src/types/transactions.rs Outdated Show resolved Hide resolved
 * use partition in split_transaction_by_hashes instead of peekable
@Rjected Rjected merged commit c277015 into main Oct 20, 2022
@Rjected Rjected deleted the gakonst/eth-remaining-msgs branch October 20, 2022 03:24
@Rjected Rjected mentioned this pull request Oct 20, 2022
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devp2p Related to the Ethereum P2P protocol C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants