nimbus-eth1/nimbus/sync
Jordan Hrycaj 9facab91cb
Prepare snap client for continuing with full sync (#1534)
* Somewhat tighten error handling

why:
  Zombie state is invoked when the current peer turns out to be useless
  for further communication. While there is a chance to further talk
  to a peer about another topic (aka healing) after some protocol failure,
  it makes no sense to do so after a network problem.

  The latter state is explained bu the `peerDegraded` flag that goes
  together with the `zombie` state flag. A degraded peer is dropped
  immediately.

* Remove `--sync-mode=snapCtx` option, always start snap in recovery mode

why:
  No need for a snap sync option without recovery mode, can be achieved
  by deleting the database.

* Code cosmetics, typos, prettify logging, debugging helper, etc.

* Split off snap sync sub-mode handler into separate modules

details:
  The original `worker.nim` source has become a multiplexer for several
  snap sync sub-modes `full` and `snap`. The source modules of the
  incarnations of a particular sync sub-mode are places into the
  `worker/play` directory.

* Update ticker for snap and full sync logging
2023-04-06 20:42:07 +01:00
..
full Prepare snap server client test scenario cont2 (#1487) 2023-03-07 14:23:22 +00:00
handlers Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
misc Prepare snap server client test scenario cont2 (#1487) 2023-03-07 14:23:22 +00:00
protocol Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
snap Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
full.nim Prepare snap server client test scenario cont1 (#1485) 2023-03-03 20:01:59 +00: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 Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
stateless.nim Sketching in "stateless mode". (#1495) 2023-03-13 14:18:30 -04:00
sync_desc.nim Update snap client storage slots download and healing (#1529) 2023-04-04 14:36:18 +01:00
sync_sched.nim Prepare snap server client test scenario cont2 (#1487) 2023-03-07 14:23:22 +00:00
types.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00