nimbus-eth1/nimbus/sync/snap/worker/db
Jordan Hrycaj 0a3bc102eb
Pre functional snap to full sync (#1546)
* Update sync scheduler pool mode

why:
  The pool mode allows to loop over active peers one after another. This
  is ideal for soft re-starting peers. As this is a two tier experience
  (start/stop, setup/release) the loop must be run twice. This is
  controlled by a more rigid re-definition of how to use the `poolMode`
  flag.

* Mitigate RLP serialiser deficiency

why:
  Currently, serialising the `BlockBody` in not conevrtible and need
  to be checked in the `eth` module. Currently a local fix for the
  wire protocol applies. Unit tests will stay (after this local solution
  will have been removed.)

* Code cosmetics and massage

details:
  Main part is `types.toStr()` as a unified function for logging block
  numbers.

* Allow to use a logical genesis replacement (start of history)

why:
  Snap sync will set up an arbitrary pivot at a block number different
  from zero. In fact, the higher the block number the better.

details:
  A non-genesis start of history will currently only affect the score
  values which were derived from the difficulty.

* Provide function to store the snap pivot block header in chain db

why:
  Together with the start of history facility, this allows to proceed
  with full syncing once snap has finished.

details:
  Snap db storage was switched from a sub-tables to the flat chain db.

* Provide database completeness and sanity checker

details:
  For debugging on smaller databases, only

* Implement snap -> full sync switch
2023-04-14 23:28:57 +01:00
..
hexary_debug.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
hexary_desc.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
hexary_envelope.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
hexary_error.nim Update snap client account healing (#1521) 2023-03-25 10:44:48 +00:00
hexary_import.nim Prepare snap server client test scenario cont2 (#1487) 2023-03-07 14:23:22 +00:00
hexary_inspect.nim Update snap client account healing (#1521) 2023-03-25 10:44:48 +00:00
hexary_interpolate.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
hexary_nearby.nim Update snap client account healing (#1521) 2023-03-25 10:44:48 +00:00
hexary_nodes_helper.nim Update snap client account healing (#1521) 2023-03-25 10:44:48 +00:00
hexary_paths.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
hexary_range.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
rocky_bulk_load.nim Silence some compiler gossip -- part 8, sync (#1467) 2023-02-14 23:38:33 +00:00
snapdb_accounts.nim Update snap client account healing (#1521) 2023-03-25 10:44:48 +00:00
snapdb_debug.nim Prepare snap server client test scenario cont4 (#1507) 2023-03-17 14:46:50 +00:00
snapdb_desc.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
snapdb_persistent.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
snapdb_pivot.nim Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
snapdb_storage_slots.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00