nimbus-eth2/beacon_chain
Jacek Sieka 03005f48e1
Backfill support for ChainDAG (#3171)
In the ChainDAG, 3 block pointers are kept: genesis, tail and head. This
PR adds one more block pointer: the backfill block which represents the
block that has been backfilled so far.

When doing a checkpoint sync, a random block is given as starting point
- this is the tail block, and we require that the tail block has a
corresponding state.

When backfilling, we end up with blocks without corresponding states,
hence we cannot use `tail` as a backfill pointer - there is no state.

Nonetheless, we need to keep track of where we are in the backfill
process between restarts, such that we can answer GetBeaconBlocksByRange
requests.

This PR adds the basic support for backfill handling - it needs to be
integrated with backfill sync, and the REST API needs to be adjusted to
take advantage of the new backfilled blocks when responding to certain
requests.

Future work will also enable moving the tail in either direction:
* pruning means moving the tail forward in time and removing states
* backwards means recreating past states from genesis, such that
intermediate states are recreated step by step all the way to the tail -
at that point, tail, genesis and backfill will match up.
* backfilling is done when backfill != genesis - later, this will be the
WSS checkpoint instead
2021-12-13 14:36:06 +01:00
..
consensus_object_pools Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
eth1 Merge BeaconBlock gossip validation (#3165) 2021-12-08 17:29:22 +00:00
fork_choice Fork choice EF consensus tests (#3041) 2021-11-25 19:41:39 +01:00
gossip_processing Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
networking add copyright header to streams backends (#3177) 2021-12-10 02:28:09 +00:00
rpc BlockId reform (#3176) 2021-12-09 19:06:21 +02:00
spec remove `stew/bitseqs` import (#3181) 2021-12-10 15:51:50 +01:00
sync Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
validator_client batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
validators batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
.editorconfig
.gitignore
beacon_chain_db.nim Backfill support for ChainDAG (#3171) 2021-12-13 14:36:06 +01:00
beacon_chain_db_immutable.nim v1.1.{5 -> 6} phase 0 and altair spec URL updates (#3157) 2021-12-03 17:40:23 +00:00
beacon_clock.nim v1.1.{5 -> 6} phase 0 and altair spec URL updates (#3157) 2021-12-03 17:40:23 +00:00
beacon_node.nim move quarantine outside of chaindag (#3124) 2021-12-06 10:49:01 +01:00
beacon_node_status.nim
conf.nim Remote signing client/server. (#3077) 2021-11-30 03:20:21 +02:00
extras.nim
filepath.nim
interop.nim
nimbus_beacon_node.nim batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
nimbus_beacon_node.nim.cfg Logging and startup improvements (#3038) 2021-11-02 18:06:36 +01:00
nimbus_binary_common.nim Reduce the logging-related breaking changes (#3070) 2021-11-10 11:02:18 +02:00
nimbus_signing_node.nim batch-verify sync messages for a small perf boost (#3151) 2021-12-09 14:56:54 +02:00
nimbus_signing_node.nim.cfg Remote signing client/server. (#3077) 2021-11-30 03:20:21 +02:00
nimbus_validator_client.nim Logging and startup improvements (#3038) 2021-11-02 18:06:36 +01:00
nimbus_validator_client.nim.cfg Logging and startup improvements (#3038) 2021-11-02 18:06:36 +01:00
sszdump.nim ncli_db: add putState, putBlock (#3096) 2021-11-18 13:02:43 +01:00
statediff.nim Keep cooked pubkeys in cache (#3122) 2021-11-25 19:41:54 +01:00
statusbar.nim
version.nim Version 1.5.5 2021-12-03 20:04:38 +02:00