nimbus-eth1/tests/test_coredb
Jordan Hrycaj 6dc2773957
Only use pre hashed addresses as account keys (#2424)
* Normalised storage tree addressing in function prototypes

detail:
  Argument list is always `<db> <account-path> <slot-path> ..` with
  both path arguments as `openArray[]`

* Remove cruft

* CoreDb internally Use full account paths rather than addresses

* Update API logging

* Use hashed account address only in prototypes

why:
  This avoids unnecessary repeated hashing of the same account address.
  The burden of doing that is upon the application. In the case here,
  the ledger caches all kinds of stuff anyway so it is common sense to
  exploit that for account address hashes.

caveat:
  Using `openArray[byte]` argument types for hashed accounts is inherently
  fragile. In non-release mode, a length verification `doAssert` is
  enabled by default.

* No accPath in data record (use `AristoAccount` as `CoreDbAccount`)

* Remove now unused `eAddr` field from ledger `AccountRef` type

why:
  Is duplicate of lookup key

* Avoid merging the account record/statement in the ledger twice.
2024-06-27 19:21:01 +00:00
..
coredb_test_xx.nim Only use pre hashed addresses as account keys (#2424) 2024-06-27 19:21:01 +00:00
test_chainsync.nim Only use pre hashed addresses as account keys (#2424) 2024-06-27 19:21:01 +00:00
test_coredb_helpers.nim Coeredb related clean up and maint fixes (#2360) 2024-06-14 11:19:48 +00:00
test_helpers.nim trivial memory-based speedups (#2205) 2024-05-23 17:37:51 +02:00