mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-29 05:25:34 +00:00
54f784bef1
* Aristo: Generalise alien/guest interface for piggiback on database * Aristo: Code cosmetics * CoreDb+Kvt: Update transaction API why: Use single addressable function `forkTx(backLevel: int)` as used in `Aristo`. So `Kvt` can be synced simultaneously to `Aristo`. also: Refactored `kvt_tx.nim` in a similar fashion to `Aristo`. * Kvt: Replace `LayerDelta` object by reference why: Will be needed when introducing filters * Kvt: Remodel backend filter facility similar to `Aristo` why: This allows to operate on several KVT instances simultaneously. * CoreDb+Kvt: Fix on-disk storage why: Overlooked name change: `stow()` => `persist()` for permanent storage * Fix copyright headers
50 lines
1.1 KiB
Nim
50 lines
1.1 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.
|
|
|
|
type
|
|
KvtError* = enum
|
|
NothingSerious = 0
|
|
GenericError
|
|
|
|
GetNotFound
|
|
KeyInvalid
|
|
DataInvalid
|
|
|
|
# RocksDB backend
|
|
RdbBeCantCreateDataDir
|
|
RdbBeDriverDelError
|
|
RdbBeDriverGetError
|
|
RdbBeDriverInitError
|
|
RdbBeDriverPutError
|
|
RdbBeDriverWriteError
|
|
|
|
# Transaction wrappers
|
|
TxArgStaleTx
|
|
TxBackendNotWritable
|
|
TxLevelTooDeep
|
|
TxLevelUseless
|
|
TxNoPendingTx
|
|
TxNotTopTx
|
|
TxPendingTx
|
|
TxStackGarbled
|
|
TxStackUnderflow
|
|
|
|
# Filter management
|
|
FilBackendMissing
|
|
FilBackendRoMode
|
|
FilSiblingsCommitUnfinshed
|
|
|
|
# Functions from `kvt_desc`
|
|
MustBeOnCentre
|
|
NotAllowedOnCentre
|
|
StaleDescriptor
|
|
|
|
# End
|