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

v5.1 Specification Update #92

Merged
merged 2 commits into from
Oct 6, 2020

Conversation

pipermerriam
Copy link
Member

@pipermerriam pipermerriam commented Sep 22, 2020

What was wrong?

ethereum/devp2p#157

The v5.1 spec is now up to date. Our implementations needs to be updated to match it.

How was it fixed?

Updated it.

Cute Animal Picture

snuzzy-dot-com

@pipermerriam
Copy link
Member Author

This partially gets the v5.1 implementation up-to-date with the spec. There is still at least one more update that needs to happen with the id_nonce_signature

@pipermerriam pipermerriam marked this pull request as ready for review September 23, 2020 21:49
@pipermerriam pipermerriam force-pushed the piper/v51-spec-update branch 6 times, most recently from 94a8016 to 4026eab Compare October 5, 2020 14:13
@pipermerriam pipermerriam changed the title WIP - spec update v5.1 Specification Update Oct 5, 2020
@pipermerriam pipermerriam force-pushed the piper/v51-spec-update branch 2 times, most recently from a912ac3 to 2ff2fc9 Compare October 5, 2020 14:45
@pipermerriam pipermerriam force-pushed the piper/v51-spec-update branch 2 times, most recently from d849863 to fe71b79 Compare October 5, 2020 15:55
@pipermerriam
Copy link
Member Author

Ok, this has successfully interop'd with the Nim and Go implementations. That gives me adequate confidence to get this merged and iterate from there.

network_parser.add_argument(

bootnodes_parser_group = network_parser.add_mutually_exclusive_group()
bootnodes_parser_group.add_argument(
"--bootnode",
action=NormalizeAndAppendENR,
help="IP address to listen on",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this helpstring is incorrect

@@ -106,11 +106,12 @@ async def run(self) -> None:
self.logger.info("Protocol-Version: %s", self._boot_info.protocol_version.value)
self.logger.info("DDHT base dir: %s", self._boot_info.base_dir)
self.logger.info("Starting discovery service...")
self.logger.info("Listening on %s:%d", listen_on, port)
Copy link
Contributor

Choose a reason for hiding this comment

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

why was the port dropped? that seems like it could be useful!

Copy link
Member Author

Choose a reason for hiding this comment

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

Not dropped. It was being double reported. listen_on is an Endpoint which contains both IP and port in a single object.

Copy link
Contributor

@lithp lithp left a comment

Choose a reason for hiding this comment

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

I didn't read through it carefully enough to find bugs, but read through it and tried to find anything which was confusing. Left some tiny comments but this looks good.

@pipermerriam pipermerriam merged commit ed43f84 into ethereum:master Oct 6, 2020
@pipermerriam pipermerriam deleted the piper/v51-spec-update branch October 6, 2020 16:30
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