nimbus-eth1/nimbus/sync/snap/worker/db
Jordan Hrycaj 7688148565
Snap sync can start on saved checkpoint (#1327)
* Stop negotiating pivot if peer repeatedly replies w/usesless answers

why:
  There is some fringe condition where a peer replies with legit but
  useless empty headers repetely. This goes on until somebody stops.
  We stop now.

* Rename `missingNodes` => `sickSubTries`

why:
  These (probably missing) nodes represent in reality fully or partially
  missing sub-tries. The top nodes may even exist, e.g. as a shallow
  sub-trie.

also:
  Keep track of account healing on/of by bool variable `accountsHealing`
  controlled in `pivot_helper.execSnapSyncAction()`

* Add `nimbus` option argument `snapCtx` for starting snap recovery (if any)

also:
+ Trigger the recovery (or similar) process from inside the global peer
  worker initialisation `worker.setup()` and not by the `snap.start()`
  function.
+ Have `runPool()` returned a `bool` code to indicate early stop to
  scheduler.

* Can import partial snap sync checkpoint at start

details:
 + Modified what is stored with the checkpoint in `snapdb_pivot.nim`
 + Will be loaded within `runDaemon()` if activated

* Forgot to import total coverage range

why:
  Only the top (or latest) pivot needs coverage but the total coverage
  is the list of all ranges for all pivots -- simply forgotten.
2022-11-25 14:56:42 +00:00
..
hexary_desc.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
hexary_error.nim Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
hexary_import.nim Prep for full sync after snap make 4 (#1282) 2022-10-27 14:49:28 +01:00
hexary_inspect.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
hexary_interpolate.nim Remodel persistent snapdb access (#1274) 2022-10-20 17:59:54 +01:00
hexary_paths.nim Prep for full sync after snap make 6 (#1291) 2022-11-08 18:56:04 +00:00
rocky_bulk_load.nim Snap sync accounts db code reorg (#1189) 2022-08-15 16:51:50 +01:00
snapdb_accounts.nim Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
snapdb_check.nim Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
snapdb_desc.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
snapdb_persistent.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
snapdb_pivot.nim Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
snapdb_storage_slots.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00