nimbus-eth1/nimbus/db/kvt/kvt_init
Jordan Hrycaj 3c6400673d
Coredb fix kvt save only fringe condition (#2592)
* Cosmetics, spelling, etc.

* Aristo: make sure that a save cycle always commits even when empty

why:
  If `Kvt` is tied to the `Aristo` DB save cycle, then this save cycle
  must also be committed if there is no data to save for `Aristo`.

  Otherwise this will lead to excessive core memory use with some fringe
  condition where Eth headers (or blocks) are downloaded while syncing
  and not really stored on disk.

* CoreDb: Correct persistent save mode

why:
  Saving `Kvt` first is seen as a harbinger (or canary) for `Aristo` as
  both run in sync. If `Kvt` succeeds saving first, so must be `Aristo`
  next. Other than this is a defect.
2024-09-04 13:48:38 +00:00
..
rocks_db Coredb fix kvt save only fringe condition (#2592) 2024-09-04 13:48:38 +00:00
init_common.nim Triggered write event for kvt (#2351) 2024-06-13 18:15:11 +00:00
memory_db.nim small cleanups (#2526) 2024-07-26 12:32:01 +07:00
memory_only.nim Coeredb related clean up and maint fixes (#2360) 2024-06-14 11:19:48 +00:00
persistent.nim Fix dboptions init (#2391) 2024-06-19 10:55:57 +02:00
rocks_db.nim small cleanups (#2526) 2024-07-26 12:32:01 +07:00