nimbus-eth2/beacon_chain
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
..
consensus_object_pools Revamp attestation pool 2021-04-13 20:24:02 +03:00
eth1 Support for fallback web3 providers; Fix resource leaks on Eth1 monitor restarts 2021-04-08 12:46:42 +03:00
fork_choice
gossip_processing Revamp attestation pool 2021-04-13 20:24:02 +03:00
networking use `new` instad of `init` 2021-04-12 20:28:39 +03:00
rpc revert change 2021-04-13 18:50:06 +02:00
spec Revamp attestation pool 2021-04-13 20:24:02 +03:00
ssz Revamp attestation pool 2021-04-13 20:24:02 +03:00
sync Fixing issues after bump. 2021-04-09 21:42:13 +03:00
validators Revamp attestation pool 2021-04-13 20:24:02 +03:00
.gitignore
beacon_chain_db.nim Merge branch 'version-1.1.0' into unstable 2021-04-08 20:50:06 +03:00
beacon_chain_db_immutable.nim json cleanups (#2456) 2021-03-26 15:11:06 +01:00
beacon_clock.nim remove some BeaconState use and abstract over other uses (#2482) 2021-04-08 08:24:25 +00:00
beacon_node_common.nim Add a POST /api/nimbus/v1/graffiti API 2021-04-09 21:42:13 +03:00
beacon_node_status.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
beacon_node_types.nim Revamp attestation pool 2021-04-13 20:24:02 +03:00
conf.nim Add "BETA version" note to the `--rest` server command line parameters descriptions. 2021-04-09 21:42:13 +03:00
extras.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
filepath.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
interop.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
nimbus_beacon_node.nim abstract over most withStateVars/withState state var usage (#2484) 2021-04-13 15:05:44 +02:00
nimbus_beacon_node.nim.cfg
nimbus_binary_common.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
nimbus_signing_process.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
nimbus_validator_client.nim json cleanups (#2456) 2021-03-26 15:11:06 +01:00
nimbus_validator_client.nim.cfg
ssz.nim
statediff.nim Reset cached indices when resetting cache on SSZ read (#2480) 2021-04-08 13:11:04 +03:00
statusbar.nim EH cleanup (#2455) 2021-03-26 07:52:01 +01:00
version.nim v1.1.0-rc; Enable v2 doppelganger detection by default 2021-04-07 00:38:47 +03:00