nimbus-eth1/tests/test_sync_snap
Jordan Hrycaj 15d0ccb39c
Prepare snap server client test scenario cont4 (#1507)
* Add state root to node steps path register `RPath` or `XPath`

why:
  Typically, the first node in the path register is the state root. There
  are occasions, when the path register is empty (i.e. there are no node
  references) which typically applies to a zero node key.

  In order to find the next node key greater than zero, the state root is
  is needed which is now part of the `RPath` or `XPath` data types.

* Extracted hexary tree debugging functions into separate files

* Update empty path fringe case for left/right node neighbour

why:
  When starting at zero, the node steps path register would be empty. So
  will any path that is before the fist non-zero link of a state root (if
  it is a `Branch` node.)

  The `hexaryNearbyRight()` or `hexaryNearbyLeft()` function required a
  non-zero node steps path register.  Now the first node is to be advanced
  starting at the first state root link if necessary.

* Simplify/reorg neighbour node finder

why:
  There was too mach code repetition for the cases
  * persistent or in-memory database
  * left or right move

details:
  Most algorithms apply for persistent and in-memory alike. Using
  templates/generic functions most of these algorithms can be stated
  in a unified way

* Update storage slots snap/1 handler

details:
  Minor changes to be more debugging friendly.

* Fix detection of full database for snap sync

* Docu: Snap sync test & debugging scenario
2023-03-17 14:46:50 +00:00
..
bulk_test_xx.nim Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
sample0.txt.gz Update snap offline tests (#1199) 2022-08-24 14:44:18 +01:00
sample1.txt.gz Update snap offline tests (#1199) 2022-08-24 14:44:18 +01:00
sample2.txt.gz Snap fetch account storage data (#1211) 2022-09-02 19:16:09 +01:00
sample3.txt.gz Snap fetch account storage data (#1211) 2022-09-02 19:16:09 +01:00
snap_other_xx.nim Snap sync accounts healing (#1225) 2022-09-16 08:24:12 +01:00
snap_storage_xx.nim Snap sync fix trie interpolation fringe condition (#1457) 2023-02-01 18:56:06 +00:00
snap_test_xx.nim Snap fetch account storage data (#1211) 2022-09-02 19:16:09 +01:00
test_accounts.nim Prepare snap server client test scenario cont4 (#1507) 2023-03-17 14:46:50 +00:00
test_calc.nim Prepare snap server client test scenario cont3 (#1491) 2023-03-10 17:10:30 +00:00
test_db_timing.nim Snap sync interval range extractor (#1449) 2023-01-30 17:50:58 +00:00
test_helpers.nim Snap sync extractor test sub range proofs (#1460) 2023-02-02 13:27:09 +00:00
test_inspect.nim Snap sync interval range extractor (#1449) 2023-01-30 17:50:58 +00:00
test_node_range.nim Prepare snap server client test scenario cont4 (#1507) 2023-03-17 14:46:50 +00:00
test_pivot.nim Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
test_storage.nim Snap sync fix trie interpolation fringe condition (#1457) 2023-02-01 18:56:06 +00:00
test_types.nim Bump nim-eth and remove all now unneeded p2p related imports (#1273) 2022-10-20 10:34:59 +02:00