Skip to content

drop head_block_root from BeaconBlocksByRange#1604

Merged
djrtwo merged 3 commits into
ethereum:devfrom
status-im:fewer-head-block-roots
Feb 9, 2020
Merged

drop head_block_root from BeaconBlocksByRange#1604
djrtwo merged 3 commits into
ethereum:devfrom
status-im:fewer-head-block-roots

Conversation

@arnetheduck

@arnetheduck arnetheduck commented Jan 31, 2020

Copy link
Copy Markdown
Contributor

This change simplifies the protocol and removes a race condition between
block request and response. In the case of honest server, this helps
serve the canonical / fork-chosen chain better while dishonest or broken
servers still need to be handled the same way.

Might as well get started on versions and upgrade it to 2, since the
change is backwards incompatible.

@arnetheduck arnetheduck force-pushed the fewer-head-block-roots branch from 4505010 to bc832d4 Compare January 31, 2020 21:03
This change simplifies the protocol and removes a race condition between
block request and response. In the case of honest server, this helps
serve the canonical / fork-chosen chain better while dishonest or broken
servers still need to be handled the same way.

Might as well get started on versions and upgrade it to 2, since the
change is backwards incompatible.
@arnetheduck arnetheduck force-pushed the fewer-head-block-roots branch from bc832d4 to c943b58 Compare January 31, 2020 21:05
@djrtwo

djrtwo commented Jan 31, 2020

Copy link
Copy Markdown
Contributor

This was discussed and agreed upon by all those on the lastest networking call.

Specifically in addition to @arnetheduck (Nimbus), @AgeManning (lighthouse) agreed that the head root does not really help and in fact makes for coding some tough edge cases.

Leaving this PR open until Monday for any additional input from other client teams

@prestonvanloon

Copy link
Copy Markdown
Contributor

LGTM, we haven't been using this field anyway in Prysm

@Nashatyrev

Copy link
Copy Markdown
Member

+1

1 similar comment
@AgeManning

Copy link
Copy Markdown
Contributor

+1

@djrtwo djrtwo 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.

Two tiny comments before merge

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

Copy link
Copy Markdown
Contributor

+1

@djrtwo djrtwo 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.

thanks!

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.

5 participants