Skip to content

deprecate phase 0-only versions of beacon_blocks_by_{range,root}#3014

Merged
hwwhww merged 1 commit intoethereum:devfrom
tersec:deprecate-phase0-beacon-blocks-req-resp
Nov 29, 2022
Merged

deprecate phase 0-only versions of beacon_blocks_by_{range,root}#3014
hwwhww merged 1 commit intoethereum:devfrom
tersec:deprecate-phase0-beacon-blocks-req-resp

Conversation

@tersec
Copy link
Contributor

@tersec tersec commented Sep 26, 2022

There haven't been any phase0 blocks in mainnet or any of the still-supported testnets in MIN_EPOCHS_FOR_BLOCK_REQUESTS regardless, so the spec already technically supports not serving said blocks.

https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/p2p-interface.md#beaconblocksbyrange-v2 and https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/p2p-interface.md#beaconblocksbyroot-v2 work across all supported forks, including phase 0, and any CL client supporting Altair or newer already has to support those messages, so this maintains req/resp compatibility for phase 0 blocks.

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

looks reasonable to me.

will leave this open for a week for comment

Copy link
Contributor

@nisdas nisdas left a comment

Choose a reason for hiding this comment

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

LGTM, should we also apply the same principle to v1 metadata requests ? They are deprecated and all clients should support v2 from altair onwards.

@hwwhww
Copy link
Contributor

hwwhww commented Nov 22, 2022

Pinging Teku for approval @ajsutton @rolfyone 👋

Copy link
Contributor

@rolfyone rolfyone 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants