nimbus-eth1/nimbus/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
..
access_list.nim EIP2929 implementation 2021-01-11 14:56:42 +07:00
accounts_cache.nim fix t8n tool bug and accounts cache bug 2023-03-23 11:07:30 +07:00
capturedb.nim rlp: don't use ranges / experimental features (#495) 2020-04-20 20:12:44 +02:00
db_chain.nim Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
distinct_tries.nim More work on stateless mode (#1535) 2023-04-12 08:39:11 -04:00
geth_db.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
incomplete_db.nim More work on stateless mode (#1535) 2023-04-12 08:39:11 -04:00
kvstore_rocksdb.nim Silence compiler gossip after nim upgrade cont1 (#1455) 2023-01-31 01:32:17 +00:00
select_backend.nim Bump submodules and fix related issues (#1448) 2023-01-27 15:57:48 +01:00
state_db.nim More work on stateless mode (#1535) 2023-04-12 08:39:11 -04:00
storage_types.nim fix persistHeaderToDb, allow POS block header to be canonical 2022-12-10 09:02:30 +07:00
values_from_bytes.nim More work on stateless mode (#1535) 2023-04-12 08:39:11 -04:00