Skip to content

MetaData and Ping#1684

Merged
djrtwo merged 3 commits into
v011xfrom
enr-ping
Mar 26, 2020
Merged

MetaData and Ping#1684
djrtwo merged 3 commits into
v011xfrom
enr-ping

Conversation

@djrtwo

@djrtwo djrtwo commented Mar 25, 2020

Copy link
Copy Markdown
Contributor

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

Comment thread specs/phase0/p2p-interface.md Outdated
Comment thread specs/phase0/p2p-interface.md
Comment thread specs/phase0/p2p-interface.md

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

No Request Content.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@protolambda protolambda left a comment

Copy link
Copy Markdown
Contributor

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