nimbus-eth1/nimbus/sync
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
..
full Silence some compiler gossip -- part 8, sync (#1467) 2023-02-14 23:38:33 +00:00
handlers Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
misc Silence some compiler gossip -- part 8, sync (#1467) 2023-02-14 23:38:33 +00:00
protocol Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
snap Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
full.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
handlers.nim Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
legacy.nim Silence some compiler gossip -- part 8, sync (#1467) 2023-02-14 23:38:33 +00:00
peers.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
protocol.nim initial wire protocol transformation 2022-10-15 19:48:21 +07:00
skeleton.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
snap.nim Silence some compiler gossip -- part 8, sync (#1467) 2023-02-14 23:38:33 +00:00
sync_desc.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
sync_sched.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00
types.nim Silence compiler gossip after nim upgrade (#1454) 2023-01-30 22:10:23 +00:00