nimbus-eth1/tests/test_sync_snap
Jordan Hrycaj b793f0de8d
Snap sync extractor and sub range proofs cont1 (#1468)
* Redefine `seq[Blob]` => `seq[SnapProof]` for `snap/1` protocol

why:
  Proof nodes are traded as `Blob` type items rather than Nim objects. So
  the RLP transcoder must not extra wrap proofs which are of type
  seq[Blob]. Without custom encoding one would produce a
  `list(blob(item1), blob(item2) ..)` instead of `list(item1, item2 ..)`.

* Limit leaf extractor by RLP size rather than number of items

why:
  To be used serving `snap/1` requests, the result of function
  `hexaryRangeLeafsProof()` is limited by the maximal space
  needed to serialise the result which will be part of the
  `snap/1` repsonse.

* Let the range extractor `hexaryRangeLeafsProof()` return RLP list sizes

why:
  When collecting accounts, the size oft the accounts list when encoded
  as RLP is continually updated. So the summed up value is available
  anyway. For the proof nodes list, there are not many (~ 10) so summing
  up is not expensive here.
2023-02-15 10:14:40 +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 Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
test_calc.nim Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +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 Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +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