nimbus-eth1/nimbus/utils
Jordan Hrycaj 4ff0948fed
Snap sync accounts healing (#1225)
* Added inspect module

why:
  Find dangling references for trie healing support.

details:
 + This patch set provides only the inspect module and some unit tests.
 + There are also extensive unit tests which need bulk data from the
   `nimbus-eth1-blob` module.

* Alternative pivot finder

why:
  Attempt to be faster on start up. Also tying to decouple pivot finder
  somehow by providing different mechanisms (this one runs in `single`
  mode.)

* Use inspect module for healing

details:
 + After some progress with account and storage data, the inspect facility
   is used to find dangling links in the database to be filled nose-wise.
 + This is a crude attempt to cobble together functional elements. The
   set up needs to be honed.

* fix scheduler to avoid starting dead peers

why:
  Some peers drop out while in `sleepAsync()`. So extra `if` clauses
  make sure that this event is detected early.

* Bug fixes causing crashes

details:

+ prettify.toPC():
  int/intToStr() numeric range over/underflow

+ hexary_inspect.hexaryInspectPath():
  take care of half initialised step with branch but missing index into
  branch array

* improve handling of dropped peers in alternaive pivot finder

why:
  Strange things may happen while querying data from the network.
  Additional checks make sure that the state of other peers is updated
  immediately.

* Update trace messages

* reorganise snap fetch & store schedule
2022-09-16 08:24:12 +01:00
..
keyed_queue update ec_recover 2022-01-22 08:26:57 +02:00
pow eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
tx_pool eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
difficulty.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
ec_recover.nim eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
header.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
pow.nim eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
prettify.nim Snap sync accounts healing (#1225) 2022-09-16 08:24:12 +01:00
tx_pool.nim move sealing engine gaslimit calculator to txpool 2022-08-29 16:54:59 +07:00
utils_defs.nim update ec_recover 2022-01-22 08:26:57 +02:00