nimbus-eth1/tests/test_aristo
Jordan Hrycaj dd1c8ed6f2
Aristo db update delete functionality (#1621)
* Fix missing branch checks in transcoder

why:
  Symmetry problem. `Blobify()` allowed for encoding degenerate branch
  vertices while `Deblobify()` rejected decoding wrongly encoded data.

* Update memory backend so that it rejects storing bogus vertices.

why:
  Error behaviour made similar to the rocks DB backend.

* Make sure that leaf vertex IDs are not repurposed

why:
  This makes it easier to record leaf node changes

* Update error return code for next()/right() traversal

why:
  Returning offending vertex ID (besides error code) helps debugging

* Update Merkle hasher for deleted nodes

why:
  Not implemented, yet

also:
  Provide cache & backend consistency check functions. This was
  partly re-implemented from `hashifyCheck()`

* Simplify some unit tests

* Fix delete function

why:
  Was conceptually wrong
2023-06-30 23:22:33 +01:00
..
test_aristo_cache.nim Detach from snap/sync declarations & definitions (#1601) 2023-06-12 19:16:03 +01:00
test_backend.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
test_delete.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
test_helpers.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
test_merge.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
test_nearby.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
test_transcode.nim Aristo db with storage backends (#1603) 2023-06-20 14:26:25 +01:00