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

initialize disc v5.1 packet format #23

Conversation

pipermerriam
Copy link
Member

@pipermerriam pipermerriam commented Aug 3, 2020

What was wrong?

The discovery v5 protocol specification is being updated with a new wire protocol:

ethereum/devp2p#157

How was it fixed?

Implemented the new protocol in ddht.v5_1

Preservation of the current v5 implementation has been kept in place since there is currently a live network of nodes (mostly from the beacon chain?) for which we may still want to be able to interact with.

Currently this only implements the low level messaging and doesn't implement the overall application structure (like populating and managing a routing table).

Cute Animal Picture

Funny-Animal-Face-Big-Crazy-Eyes

@pipermerriam pipermerriam force-pushed the piper/update-to-latest-wire-protocol branch 3 times, most recently from aef84c5 to 9caf876 Compare August 5, 2020 19:33

class OutgoingDatagram(NamedTuple):
datagram: bytes
receiver_endpoint: Endpoint

This comment was marked as resolved.

class IncomingMessage(NamedTuple):
message: BaseMessage
sender_endpoint: Endpoint
sender_node_id: NodeID

This comment was marked as resolved.

class OutgoingMessage(NamedTuple):
message: BaseMessage
receiver_endpoint: Endpoint
receiver_node_id: NodeID

This comment was marked as resolved.

topic_sedes = Binary.fixed_length(TOPIC_HASH_SIZE)


class IPAddressSedes(Binary): # type: ignore

This comment was marked as resolved.

@pipermerriam pipermerriam force-pushed the piper/update-to-latest-wire-protocol branch 5 times, most recently from cef403b to ebab34c Compare August 10, 2020 20:43
@pipermerriam pipermerriam marked this pull request as ready for review August 10, 2020 20:53
@pipermerriam pipermerriam force-pushed the piper/update-to-latest-wire-protocol branch from ebab34c to 263dc76 Compare August 10, 2020 21:03
@pipermerriam pipermerriam merged commit b8ff18d into ethereum:master Aug 10, 2020
@pipermerriam pipermerriam deleted the piper/update-to-latest-wire-protocol branch August 10, 2020 22:05
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.

1 participant