nimbus-eth1/nimbus
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
..
common Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
core Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
db Silence compiler gossip after nim upgrade cont1 (#1455) 2023-01-31 01:32:17 +00:00
evm Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
graphql bump submodules to further reduce compiler warnings 2023-02-02 09:29:02 +07:00
rpc Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
sync Snap sync extractor and sub range proofs cont1 (#1468) 2023-02-15 10:14:40 +00:00
transaction Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
utils Fix potential overflow error on toPC (#1458) 2023-02-02 09:30:14 +01:00
common.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
config.nim Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
constants.nim Silence compiler gossip after nim upgrade cont1 (#1455) 2023-01-31 01:32:17 +00:00
errors.nim fix EIP-3860 bugs 2023-01-13 13:04:23 +07:00
launcher.nim Premix-related changes 2019-01-28 12:38:23 +02:00
lightchain_shell.nim Some renames 2018-05-28 13:22:28 +03:00
makefile Snap sync fix trie interpolation fringe condition (#1457) 2023-02-01 18:56:06 +00:00
nim.cfg NAT port mapping 2019-04-17 03:56:28 +02:00
nimbus.nim Add snap protocol service stub (#1438) 2023-01-20 15:01:29 +00:00
rpc.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
tracer.nim Silence compiler gossip after nim upgrade cont3 (#1466) 2023-02-14 20:27:17 +00:00
transaction.nim fix EIP-3860 intrinsic gas once again 2023-01-15 14:37:19 +07:00
version.nim dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
vm_compile_info.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_computation.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_gas_costs.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_internals.nim cleanup numeric utils and remove unstable rangeToPadded 2022-12-21 18:41:03 +07:00
vm_precompiles.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_state.nim add geth compatibility flag to emvstate tool and transaction tracer 2022-12-14 21:52:43 +07:00
vm_state_transactions.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
vm_types.nim implement better hardfork management 2022-12-02 13:51:42 +07:00