Skip to content

fix: Remove block number from p2p proposals and attestations (#17886)#17948

Merged
spalladino merged 1 commit intobackport-to-v2-stagingfrom
backport/v2/17886
Oct 24, 2025
Merged

fix: Remove block number from p2p proposals and attestations (#17886)#17948
spalladino merged 1 commit intobackport-to-v2-stagingfrom
backport/v2/17886

Conversation

@spalladino
Copy link
Contributor

Block number was NOT being signed over, this meant any node could tweak it and cause receiving nodes to consider the proposal incorrect. We fix this by fetching the parent node using the last archive root (which required adding new indices to the archiver) and computing the block number by adding one to it.

As for attestations, the block number was not used at all, so we could remove it.

Fixes A-128

Block number was NOT being signed over, this meant any node could tweak
it and cause receiving nodes to consider the proposal incorrect. We fix
this by fetching the parent node using the last archive root (which
required adding new indices to the archiver) and computing the block
number by adding one to it.

As for attestations, the block number was not used at all, so we could
remove it.

Fixes A-128
@spalladino spalladino added the ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure label Oct 24, 2025
@spalladino spalladino merged commit c0dc6b4 into backport-to-v2-staging Oct 24, 2025
11 of 12 checks passed
@spalladino spalladino deleted the backport/v2/17886 branch October 24, 2025 22:03
spalladino added a commit that referenced this pull request Oct 28, 2025
…#17948)

Block number was NOT being signed over, this meant any node could tweak
it and cause receiving nodes to consider the proposal incorrect. We fix
this by fetching the parent node using the last archive root (which
required adding new indices to the archiver) and computing the block
number by adding one to it.

As for attestations, the block number was not used at all, so we could
remove it.

Fixes A-128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant