Commit b14b766
authored
Caplin: Inclusion of
This PR add operations inclusion.
## Normal operations
* BlsExecutionChange
* VoluntaryExit
* Slashings
Each of these operations blacklist the index they work on so we do not
have repeating indices for the same operations twice. we assume all
signatures are pre-validated and just see if it is a good time to
produce a block with them (by looking at their slot)
## Aggregated Attestations
There is a lot of trash attestations on the network so we separate our
algorithm in 3 steps:
### Eligibility
We iterate over the entire pool of accumulated attestations and filter
out all attestations who cannot be included at the current slot, and
compute their expected reward. (filter out if 0).
### Ranking
We rank the `Attestation`s by their expected reward (we just sort the
array of candidates) by expected reward in ascending order.
### Filtering by superset
We may have some supersets left-over, filter attestation which ends up
being supersets of other. this process is done from highest reward down
to lowest reward.VoluntaryExits, AttesterSlashings, ProposerSlashings, BlsExecutionToChanges and Attestations into block production (#10071)1 parent 00850e0 commit b14b766
File tree
4 files changed
+637
-106
lines changed- cl
- aggregation
- beacon/handler
- phase1/core/state
- transition/impl/eth2
4 files changed
+637
-106
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
| |||
0 commit comments