nimbus-eth1/nimbus/db/aristo/aristo_desc
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
..
aristo_error.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
aristo_types_backend.nim Aristo db with storage backends (#1603) 2023-06-20 14:26:25 +01:00
aristo_types_identifiers.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
aristo_types_structural.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00