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

Bellatrix Release Candidate (v1.2.0-rc.1) #2896

Merged
merged 135 commits into from
May 23, 2022
Merged

Bellatrix Release Candidate (v1.2.0-rc.1) #2896

merged 135 commits into from
May 23, 2022

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented May 17, 2022

hwwhww and others added 19 commits May 10, 2022 16:12
Convert sets to sorted lists prior to sampling
Require fork choice to run before proposal
minor patch to bytes formatting in capella
Optimistic Sync: remove INVALID_TERMINAL_BLOCK
…-test

Add invalid large withdrawable epoch test
* Ignore subset aggregates

When aggregates are propagated through the network, it is often the case
that a better aggregate has already been seen - in particular, this
happens when an aggregator has not been able to include itself in the
mesh and therefore publishes an aggregate with only its own
attestations.

This new ignore rule allows dropping all aggregates that are
(non-strict) subsets of aggregates that have already been seen on the
network. In particular, it does not mandate dropping aggregates where a
union of previous aggregates would cause it to become a subset).

The logic for allowing this is based on the premise that any aggregate
that has already been seen by a peer will also have been seen by its
neighbours - a subset aggregate (strict or not) brings no new value to
the aggregation algorithm, except in the extreme edge case where you
could combine several such sparse aggregates into a single, more dense
"combined" aggregate and thus use less block space.

Further, as a small benefit, computing the `hash_tree_root` of the full
aggregate is generally not done -however, `hash_tree_root(data)` is
already done for other purposes as this is used as index in the beacon
API.

* add subset ignore rule to sync contributions as well

* typo
@djrtwo djrtwo changed the title Bellatrix Release Candidate (v1.2.0-rc.1) [DO NOT MERGE] Bellatrix Release Candidate (v1.2.0-rc.1) May 17, 2022
mkalinin and others added 4 commits May 19, 2022 07:56
* Remove API restrictions

* Update optimistic.md
* deprecate `BeaconBlocksByRange.step`

The `step` parameter has not seen much implementation in real life
clients which instead opt to request variations on a few epochs at a
time (instead of interleaving single blocks, entire epochs are
interleaved).

At the same time, supporting `step` on the server side brings several
complications: more complex bounds checking logic, more complex loading
of blocks from linear storage (which presumably stores all blocks and
not just certain increments).

This PR suggests that we deprecate the whole idea. Backwards
compatibility is kept by simply responding with a single block when
`step > 0` - this is allowed by the spec and should thus be handled
gracefully by requesting clients already, should there exist any that
use larger step counts.

Removing `step` now allows simplifying the EL-CL protocol for serving
execution data from the EL to avoid double storage.

* Update specs/phase0/p2p-interface.md

Co-authored-by: Danny Ryan <dannyjryan@gmail.com>

Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
@djrtwo djrtwo changed the title [DO NOT MERGE] Bellatrix Release Candidate (v1.2.0-rc.1) Bellatrix Release Candidate (v1.2.0-rc.1) May 20, 2022
@djrtwo djrtwo merged commit b08f6d7 into master May 23, 2022
@g11tech g11tech mentioned this pull request May 24, 2022
22 tasks
Copy link

@Deluaney1 Deluaney1 left a comment

Choose a reason for hiding this comment

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

Withdraw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.