nimbus-eth1/nimbus
Jordan Hrycaj e14fd4b96c
Prep for full sync after snap make 6 (#1291)
* Update log ticker, using time interval rather than ticker count

why:
  Counting and logging ticker occurrences is inherently imprecise. So
  time intervals are used.

* Use separate storage tables for snap sync data

* Left boundary proof update

why:
  Was not properly implemented, yet.

* Capture pivot in peer worker (aka buddy) tasks

why:
  The pivot environment is linked to the `buddy` descriptor. While
  there is a task switch, the pivot may change. So it is passed on as
  function argument `env` rather than retrieved from the buddy at
  the start of a sub-function.

* Split queues `fetchStorage` into `fetchStorageFull` and `fetchStoragePart`

* Remove obsolete account range returned from `GetAccountRange` message

why:
  Handler returned the wrong right value of the range. This range was
  for convenience, only.

* Prioritise storage slots if the queue becomes large

why:
  Currently, accounts processing is prioritised up until all accounts
  are downloaded. The new prioritisation has two thresholds for
  + start processing storage slots with a new worker
  + stop account processing and switch to storage processing

also:
  Provide api for `SnapTodoRanges` pair of range sets in `worker_desc.nim`

* Generalise left boundary proof for accounts or storage slots.

why:
  Detailed explanation how this works is documented with
  `snapdb_accounts.importAccounts()`.

  Instead of enforcing a left boundary proof (which is still the default),
  the importer functions return a list of `holes` (aka node paths) found in
  the argument ranges of leaf nodes. This in turn is used by the book
   keeping software for data download.

* Forgot to pass on variable in function wrapper

also:
  + Start healing not before 99% accounts covered (previously 95%)
  + Logging updated/prettified
2022-11-08 18:56:04 +00:00
..
accounts Initial implementation of the merge spec 2022-01-24 09:44:39 +02:00
db Prep for full sync after snap make 6 (#1291) 2022-11-08 18:56:04 +00:00
docs.static Kludge for 'make docs' to produce pretty nim manuals 2022-01-22 08:26:57 +02:00
graphql add CORS support for HTTP local services(json-rpc, engine-api, graphql) 2022-07-19 16:12:36 +07:00
merge bump nim eth 2022-08-22 20:11:36 +07:00
p2p move isLondon to chain_config.nim 2022-10-25 11:01:31 +07:00
rpc initial wire protocol transformation 2022-10-15 19:48:21 +07:00
sync Prep for full sync after snap make 6 (#1291) 2022-11-08 18:56:04 +00:00
transaction Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
utils move isLondon to chain_config.nim 2022-10-25 11:01:31 +07:00
vm2 Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
block_types.nim reduce compiler warnings 2019-11-13 21:49:39 +07:00
chain_config.nim move isLondon to chain_config.nim 2022-10-25 11:01:31 +07:00
conf_utils.nim modify hive simulators to run in CI 2022-04-21 12:01:18 +07:00
config.nim Bump nim-eth and remove all now unneeded p2p related imports (#1273) 2022-10-20 10:34:59 +02: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 Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00:00
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 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 wire evmc to vm2 and drop legacy vm 2022-09-26 15:16:28 +07:00
nim.cfg NAT port mapping 2019-04-17 03:56:28 +02:00
nimbus.nim initial wire protocol transformation 2022-10-15 19:48:21 +07: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 dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
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