nimbus-eth1/nimbus/db/aristo/aristo_init
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_rocksdb Aristo db update foreground caching (#1605) 2023-06-22 12:13:24 +01:00
aristo_init_common.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
aristo_memory.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00
aristo_rocksdb.nim Aristo db update delete functionality (#1621) 2023-06-30 23:22:33 +01:00