nimbus-eth1/nimbus
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
..
common More work on withdrawals (#1482) 2023-03-09 18:40:55 -05:00
core More work on withdrawals (#1503) 2023-03-16 16:34:47 -04:00
db More work on withdrawals (#1503) 2023-03-16 16:34:47 -04:00
evm More work on withdrawals (#1503) 2023-03-16 16:34:47 -04:00
graphql bump submodules to further reduce compiler warnings 2023-02-02 09:29:02 +07:00
rpc More work on withdrawals (#1482) 2023-03-09 18:40:55 -05:00
sync Prepare snap server client test scenario cont4 (#1507) 2023-03-17 14:46:50 +00:00
transaction Time based forking (#1465) 2023-02-16 12:40:07 +01:00
utils More work on withdrawals (#1482) 2023-03-09 18:40:55 -05:00
common.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
config.nim Sketching in "stateless mode". (#1495) 2023-03-13 14:18:30 -04: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
lightchain_shell.nim
makefile Snap sync fix trie interpolation fringe condition (#1457) 2023-02-01 18:56:06 +00:00
nim.cfg
nimbus.nim Sketching in "stateless mode". (#1495) 2023-03-13 14:18:30 -04: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
vm_compile_info.nim Prepare snap server client test scenario (#1483) 2023-03-02 09:57:58 +00: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 More work on withdrawals (#1503) 2023-03-16 16:34:47 -04: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