nimbus-eth1/nimbus/db/ledger/backend/accounts_cache_desc.nim
Jordan Hrycaj e8ad950e0a
Ledger abstraction for accounts cache (#1824)
* Provide TDD/debug facility for inspecting `persistBlocks()` working

detail:
+ Make sure that the last block of a test sample is the first batch
  item in `persistBlocks()`.
+ Additionally, allow `AccountsCache` API tracing by setting the flag
  `extraTraceMessages = true` in the file `accounts_cache.nim`

* Overload AccountsCache by abstraction wrapper

details:
  Can facilitate CoreDb API switch, details in `ledger/README.md`.
2023-10-18 20:27:22 +01:00

13 lines
206 B
Nim

import
../accounts_cache as impl,
../base/base_desc
type
AccountsCache* = ref object of LedgerRef
ac*: impl.AccountsCache
SavePoint* = ref object of LedgerSpRef
sp*: impl.SavePoint
# End