nimbus-eth1/nimbus
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
..
common More work on withdrawals (#1482) 2023-03-09 18:40:55 -05:00
core t8n tools support withdrawals records 2023-03-21 18:36:22 +07:00
db fix t8n tool bug and accounts cache bug 2023-03-23 11:07:30 +07:00
evm fix t8n tool bug and accounts cache bug 2023-03-23 11:07:30 +07:00
graphql bump submodules to further reduce compiler warnings 2023-02-02 09:29:02 +07:00
rpc Fix the ReceiptObject JSON-RPC type (#1522) 2023-03-27 21:10:43 +02:00
sync Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
transaction refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
utils refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
common.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
config.nim Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
constants.nim Silence compiler gossip after nim upgrade cont1 (#1455) 2023-01-31 01:32:17 +00:00
errors.nim fix EIP-3860 bugs 2023-01-13 13:04:23 +07:00
launcher.nim Premix-related changes 2019-01-28 12:38:23 +02:00
lightchain_shell.nim Some renames 2018-05-28 13:22:28 +03:00
makefile Snap sync fix trie interpolation fringe condition (#1457) 2023-02-01 18:56:06 +00:00
nim.cfg NAT port mapping 2019-04-17 03:56:28 +02:00
nimbus.nim Prepare snap client for continuing with full sync (#1534) 2023-04-06 20:42:07 +01:00
rpc.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
tracer.nim Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
transaction.nim fix EIP-3860 intrinsic gas once again 2023-01-15 14:37:19 +07:00
version.nim dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
vm_compile_info.nim Prepare snap server client test scenario (#1483) 2023-03-02 09:57:58 +00:00
vm_computation.nim refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
vm_gas_costs.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_internals.nim refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
vm_precompiles.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_state.nim refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
vm_state_transactions.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_types.nim implement better hardfork management 2022-12-02 13:51:42 +07:00