nimbus-eth1/nimbus/core
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
..
chain Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
clique Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
executor More work on stateless mode (#1535) 2023-04-12 08:39:11 -04:00
pow Time based forking (#1465) 2023-02-16 12:40:07 +01:00
tx_pool More work on stateless mode (#1535) 2023-04-12 08:39:11 -04:00
block_import.nim saner source code grouping 2022-12-02 13:51:42 +07:00
casper.nim More work on withdrawals (#1482) 2023-03-09 18:40:55 -05:00
chain.nim saner source code grouping 2022-12-02 13:51:42 +07:00
clique.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
dao.nim saner source code grouping 2022-12-02 13:51:42 +07:00
eip4844.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
executor.nim saner source code grouping 2022-12-02 13:51:42 +07:00
gaslimit.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
pow.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
sealer.nim More work on withdrawals (#1482) 2023-03-09 18:40:55 -05:00
tx_pool.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
validate.nim t8n tools support withdrawals records 2023-03-21 18:36:22 +07:00
withdrawals.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00