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

MetaData and Ping #1684

Merged
merged 3 commits into from
Mar 26, 2020
Merged

MetaData and Ping #1684

merged 3 commits into from
Mar 26, 2020

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Mar 25, 2020

Based on @AgeManning's #1673 and the discussion on the recent networking call.

  • Add local notion of "MetaData" that has a sequence number. Currently just includes attnets
  • Add Ping that sends back and forth meta_data.seq_number
  • Add GetMetaData RPC method to request a nodes most recent MetaData
  • Clarify when the ENR attnets field is optional

specs/phase0/p2p-interface.md Outdated Show resolved Hide resolved
specs/phase0/p2p-interface.md Show resolved Hide resolved
specs/phase0/p2p-interface.md Show resolved Hide resolved

**Protocol ID:** `/eth2/beacon_chain/req/metadata/1/`

No Request Content.
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, the first RPC call without a request content. Does that mean an empty payload, but still a request header with a 0-length in it? Or no bytes at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This came from @AgeManning in his previous PR.
I interpreted it as no bytes at all

Copy link
Contributor

Choose a reason for hiding this comment

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

Think we can spec it both ways, let's ask on the call

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Talked to age, was the intention and works on libp2p...

Will change it later if Raul chimes in otherwise

Copy link
Contributor

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants