nimbus-eth1/nimbus/sync
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
..
full Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
handlers Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
misc Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
protocol Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
snap Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
full.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
handlers.nim Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
legacy.nim Silence some compiler gossip -- part 8, sync (#1467) 2023-02-14 23:38:33 +00:00
peers.nim Slightly change the static peer manager lookup behaviour (#1484) 2023-03-06 09:22:07 +00:00
protocol.nim initial wire protocol transformation 2022-10-15 19:48:21 +07:00
skeleton.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
snap.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
stateless.nim Sketching in "stateless mode". (#1495) 2023-03-13 14:18:30 -04:00
sync_desc.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
sync_sched.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
types.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00