nimbus-eth2/beacon_chain/ssz
Jacek Sieka 4ed2e34a9e Revamp attestation pool
This is a revamp of the attestation pool that cleans up several aspects
of attestation processing as the network grows larger and block space
becomes more precious.

The aim is to better exploit the divide between attestation subnets and
aggregations by keeping the two kinds separate until it's time to either
produce a block or aggregate. This means we're no longer eagerly
combining single-vote attestations, but rather wait until the last
moment, and then try to add singles to all aggregates, including those
coming from the network.

Importantly, the branch improves on poor aggregate quality and poor
attestation packing in cases where block space is running out.

A basic greed scoring mechanism is used to select attestations for
blocks - attestations are added based on how much many new votes they
bring to the table.

* Collect single-vote attestations separately and store these until it's
time to make aggregates
* Create aggregates based on single-vote attestations
* Select _best_ aggregate rather than _first_ aggregate when on
aggregation duty
* Top up all aggregates with singles when it's time make the attestation
cut, thus improving the chances of grabbing the best aggregates out
there
* Improve aggregation test coverage
* Improve bitseq operations
* Simplify aggregate signature creation
* Make attestation cache temporary instead of storing it in attestation
pool - most of the time, blocks are not being produced, no need to keep
the data around
* Remove redundant aggregate storage that was used only for RPC
* Use tables to avoid some linear seeks when looking up attestation data
* Fix long cleanup on large slot jumps
* Avoid some pointers
* Speed up iterating all attestations for a slot (fixes #2490)
2021-04-13 20:24:02 +03:00
..
bitseqs.nim Revamp attestation pool 2021-04-13 20:24:02 +03:00
bytes_reader.nim Merge branch 'version-1.1.0' into unstable 2021-04-08 20:50:06 +03:00
dynamic_navigator.nim Bump modules to take advantage of the new Json format flavors support 2021-03-25 09:37:35 +02:00
merkleization.nim bump spec refs from v1.0.0 to v1.0.1 and update copyright years (#2357) 2021-02-25 13:37:22 +00:00
navigator.nim fix broken metrics during replay (#2090) 2020-11-27 23:16:13 +01:00
spec_types.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
ssz_serialization.nim add Altair domains and participation flags; clean up imports (#2462) 2021-04-04 16:24:45 +00:00
sszdump.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
types.nim Revamp attestation pool 2021-04-13 20:24:02 +03:00