nimbus-eth1/nimbus/sync/snap
Jordan Hrycaj 85de03fd6e
Rename and update dismantle => hexaryEnvelopeDecompose() (#1351)
* Rename and update dismantle => hexaryEnvelopeDecompose()

why:
+ As for naming, a positive connotation is prefered
+ The unit tests were really insufficient
+ The function result was wrong on a few boundry conditions

detail:
+ Extracted the function from `hexary_paths.nim` and re-implemented
  it together with other envelope functions => `hexary_envelope.nim`
+ Re-wrote docu for `hexaryEnvelopeDecompose()`

* Relaxed right condition for `hexaryEnvelopeDecompose()` range argument

why;
  Previously, the right point of the argument interval had to be a path
  to an allocated leaf node. While this is typically a given for accounts,
  it is easier to require an arbitrary range of paths (or keys) with
  the requirement of a `boundary proof` for left and right (i.e. enough
  nodes in the database to find the end points.)

also:
  Bug fixes for related functions (typos, missing conditions etc.)

* Add missing unit tests include file
2022-12-06 17:35:56 +00:00
..
worker Rename and update dismantle => hexaryEnvelopeDecompose() (#1351) 2022-12-06 17:35:56 +00:00
constants.nim Snap sync interval complement method to speed up trie perusal (#1328) 2022-11-28 09:03:23 +00:00
range_desc.nim Snap sync interval complement method to speed up trie perusal (#1328) 2022-11-28 09:03:23 +00:00
worker.nim Snap sync interval complement method to speed up trie perusal (#1328) 2022-11-28 09:03:23 +00:00
worker_desc.nim Snap sync interval complement method to speed up trie perusal (#1328) 2022-11-28 09:03:23 +00:00