nimbus-eth1/nimbus
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
..
accounts
db Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
docs.static
graphql add CORS support for HTTP local services(json-rpc, engine-api, graphql) 2022-07-19 16:12:36 +07:00
merge disable NewBlockHashes and NewBlock of eth wire handler after POS transition 2022-11-14 16:17:34 +07:00
p2p move isLondon to chain_config.nim 2022-10-25 11:01:31 +07:00
rpc disable NewBlockHashes and NewBlock of eth wire handler after POS transition 2022-11-14 16:17:34 +07:00
sync Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
transaction Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
utils eth wire handlers: implement transactions exchange 2022-11-11 09:24:32 +07:00
vm2 Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
block_types.nim
chain_config.nim unify chain config parser of t8n, bc test, and consensus simulator 2022-11-25 12:26:29 +07:00
conf_utils.nim modify hive simulators to run in CI 2022-04-21 12:01:18 +07:00
config.nim Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
constants.nim eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
context.nim enhance net-key command line option to accept random, hex, and path 2022-07-30 08:46:11 +07:00
debug.nim reduce imported but not used warning when evmc enabled 2022-10-03 16:41:33 +07:00
errors.nim
forks.nim upgrade evmc to v10.0.0 2022-10-03 16:38:32 +07:00
genesis.nim Bump nim-eth and remove all now unneeded p2p related imports (#1273) 2022-10-20 10:34:59 +02:00
genesis_alloc.nim Added sepolia specs (#1148) 2022-07-01 21:16:26 +01:00
launcher.nim
lightchain_shell.nim
makefile wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00
nim.cfg
nimbus.nim Snap sync can start on saved checkpoint (#1327) 2022-11-25 14:56:42 +00:00
peers.nim simple peer manager to handle static peers reconnection 2022-08-26 22:07:56 +07:00
sealer.nim move sealing engine gaslimit calculator to txpool 2022-08-29 16:54:59 +07:00
tracer.nim eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
transaction.nim Cleanup some imports and fix some warnings in the process (#1096) 2022-05-22 22:44:15 +02:00
utils.nim initial beacon sync skeleton implementation 2022-09-17 09:08:55 +07:00
validation.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
version.nim
vm_compile_info.nim wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00
vm_computation.nim wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00
vm_gas_costs.nim upgrade evmc to v10.0.0 2022-10-03 16:38:32 +07:00
vm_internals.nim wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00
vm_precompiles.nim wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00
vm_state.nim add enabledTracing accessor to BaseVMState 2022-10-25 11:01:31 +07:00
vm_state_transactions.nim Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
vm_types.nim wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00