mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 04:15:54 +00:00
f926222fec
* Remove all journal related stuff * Refactor function names journal*() => delta*(), filter*() => delta*() * remove `trg` fileld from `FilterRef` why: Same as `kMap[$1]` * Re-type FilterRef.src as `HashKey` why: So it is directly comparable to `kMap[$1]` * Moved `vGen[]` field from `LayerFinalRef` to `LayerDeltaRef` why: Then a separate `FilterRef` type is not needed, anymore * Rename `roFilter` field in `AristoDbRef` => `balancer` why: New name more appropriate. * Replace `FilterRef` by `LayerDeltaRef` type why: This allows to avoid copying into the `balancer` (see next patch set) most of the time. Typically, only one instance is running on the backend and the `balancer` is only used as a stage before saving data. * Refactor way how to store data persistently why: Avoid useless copy when staging `top` layer for persistently saving to backend. * Fix copyright header?
54 lines
1.0 KiB
Nim
54 lines
1.0 KiB
Nim
# nimbus-eth1
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
# http://opensource.org/licenses/MIT)
|
|
# at your option. This file may not be copied, modified, or distributed
|
|
# except according to those terms.
|
|
|
|
## Aristo DB -- Standard interface
|
|
## ===============================
|
|
##
|
|
{.push raises: [].}
|
|
|
|
import
|
|
aristo/[aristo_api, aristo_constants, aristo_sign]
|
|
export
|
|
aristo_api, aristo_constants, aristo_sign
|
|
|
|
import
|
|
aristo/aristo_init
|
|
export
|
|
MemBackendRef,
|
|
VoidBackendRef,
|
|
init
|
|
|
|
import
|
|
aristo/aristo_nearby
|
|
export
|
|
leftPairs, # iterators
|
|
rightPairs
|
|
|
|
import
|
|
aristo/aristo_desc/[desc_identifiers, desc_structural]
|
|
export
|
|
AristoAccount,
|
|
PayloadRef,
|
|
PayloadType,
|
|
desc_identifiers,
|
|
`==`
|
|
|
|
import
|
|
aristo/aristo_desc
|
|
export
|
|
AristoDbAction,
|
|
AristoDbRef,
|
|
AristoError,
|
|
AristoTxRef,
|
|
MerkleSignRef,
|
|
isValid
|
|
|
|
# End
|