nimbus-eth1/nimbus/sync/snap/worker
Jordan Hrycaj bba1bea4c8
Snap sync state save (#1302)
* Piecemeal trie inspection

details:
  Trie inspection will stop after maximum number of nodes visited.
  The inspection can be resumed using the returned state from the
  last session.

why:
  This feature allows for task switch between `piecemeal` sessions.

* Extract pivot helper code from `worker.nim` => `pivot_helper.nim`

* Accounts import will now return dangling paths from `proof` nodes

why:
  With proper bookkeeping, this can be used to start healing without
  analysing the the probably full trie.

* Update `unprocessed` account range handling

why:
  More generally, the API of a pairs of unprocessed intervals favours
  the first set and not before that is exhausted the second set comes
  into play.

  This was unfortunately implemented which caused the ranges to be
  unnecessarily fractioned. Now the number of range interval typically
  remains in the lower single digit numbers.

* Save sync state after end of downloading some accounts

details:
  restore/resume to be implemented later
2022-11-16 23:51:06 +00:00
..
com Prep for full sync after snap make 6 (#1291) 2022-11-08 18:56:04 +00:00
db Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
heal_accounts.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
heal_storage_slots.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
pivot_helper.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
range_fetch_accounts.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
range_fetch_storage_slots.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00
ticker.nim Snap sync state save (#1302) 2022-11-16 23:51:06 +00:00