2023-05-11 14:25:29 +00:00
|
|
|
# nimbus-eth1
|
|
|
|
# Copyright (c) 2021 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
|
|
|
|
AristoError* = enum
|
|
|
|
NothingSerious = 0
|
2023-05-30 21:21:15 +00:00
|
|
|
GenericError
|
2023-05-11 14:25:29 +00:00
|
|
|
|
2023-06-09 11:17:37 +00:00
|
|
|
# Rlp decoder, `read()`
|
2023-05-11 14:25:29 +00:00
|
|
|
Rlp2Or17ListEntries
|
|
|
|
RlpBlobExpected
|
|
|
|
RlpBranchLinkExpected
|
|
|
|
RlpExtPathEncoding
|
|
|
|
RlpNonEmptyBlobExpected
|
|
|
|
RlpEmptyBlobExpected
|
|
|
|
RlpRlpException
|
|
|
|
RlpOtherException
|
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# Data record transcoders, `deblobify()` and `blobify()`
|
2023-06-30 22:22:33 +00:00
|
|
|
BlobifyBranchMissingRefs
|
|
|
|
BlobifyExtMissingRefs
|
|
|
|
BlobifyExtPathOverflow
|
|
|
|
BlobifyLeafPathOverflow
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
DeblobNilArgument
|
|
|
|
DeblobUnknown
|
|
|
|
DeblobTooShort
|
|
|
|
DeblobBranchTooShort
|
|
|
|
DeblobBranchSizeGarbled
|
|
|
|
DeblobBranchInxOutOfRange
|
|
|
|
DeblobExtTooShort
|
|
|
|
DeblobExtSizeGarbled
|
|
|
|
DeblobExtGotLeafPrefix
|
|
|
|
DeblobLeafSizeGarbled
|
|
|
|
DeblobLeafGotExtPrefix
|
|
|
|
DeblobSizeGarbled
|
|
|
|
DeblobWrongType
|
2023-05-11 14:25:29 +00:00
|
|
|
|
2023-06-09 11:17:37 +00:00
|
|
|
# Converter `asNode()`, currenly for unit tests only
|
2023-05-11 14:25:29 +00:00
|
|
|
CacheMissingNodekeys
|
|
|
|
|
2023-06-09 11:17:37 +00:00
|
|
|
# Path function `hikeUp()`
|
2023-06-22 11:13:24 +00:00
|
|
|
HikeRootMissing
|
|
|
|
HikeLeafTooEarly
|
|
|
|
HikeBranchTailEmpty
|
|
|
|
HikeBranchBlindEdge
|
|
|
|
HikeExtTailEmpty
|
|
|
|
HikeExtTailMismatch
|
2023-05-30 11:47:47 +00:00
|
|
|
|
|
|
|
# Path/nibble/key conversions in `aisto_path.nim`
|
|
|
|
PathExpected64Nibbles
|
|
|
|
PathExpectedLeaf
|
2023-05-11 14:25:29 +00:00
|
|
|
|
2023-05-30 11:47:47 +00:00
|
|
|
# Merge leaf `merge()`
|
|
|
|
MergeBrLinkLeafGarbled
|
|
|
|
MergeBrLinkVtxPfxTooShort
|
|
|
|
MergeBranchGarbledNibble
|
|
|
|
MergeBranchGarbledTail
|
2023-05-30 21:21:15 +00:00
|
|
|
MergeBranchLinkLockedKey
|
|
|
|
MergeBranchLinkProofModeLock
|
|
|
|
MergeBranchProofModeLock
|
2023-05-30 11:47:47 +00:00
|
|
|
MergeBranchRootExpected
|
|
|
|
MergeLeafGarbledHike
|
2023-05-30 21:21:15 +00:00
|
|
|
MergeLeafPathCachedAlready
|
|
|
|
MergeNonBranchProofModeLock
|
2023-05-30 11:47:47 +00:00
|
|
|
MergeRootBranchLinkBusy
|
2023-06-22 11:13:24 +00:00
|
|
|
MergeAssemblyFailed # Ooops, internal error
|
2023-05-30 11:47:47 +00:00
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
MergeHashKeyInvalid
|
|
|
|
MergeRootVidInvalid
|
|
|
|
MergeRootKeyInvalid
|
|
|
|
MergeRevVidMustHaveBeenCached
|
2023-06-12 18:16:03 +00:00
|
|
|
MergeHashKeyCachedAlready
|
|
|
|
MergeHashKeyDiffersFromCached
|
2023-06-20 13:26:25 +00:00
|
|
|
MergeNodeVtxDiffersFromExisting
|
2023-06-09 11:17:37 +00:00
|
|
|
MergeRootKeyDiffersForVid
|
2023-05-30 21:21:15 +00:00
|
|
|
|
|
|
|
# Update `Merkle` hashes `hashify()`
|
|
|
|
HashifyCannotComplete
|
|
|
|
HashifyCannotHashRoot
|
|
|
|
HashifyExistingHashMismatch
|
|
|
|
HashifyLeafToRootAllFailed
|
|
|
|
HashifyRootHashMismatch
|
2023-06-02 10:04:29 +00:00
|
|
|
HashifyRootVidMismatch
|
2023-06-30 22:22:33 +00:00
|
|
|
HashifyVidCircularDependence
|
|
|
|
HashifyVtxMissing
|
|
|
|
|
|
|
|
# Cache checker `checkCache()`
|
|
|
|
CheckStkVtxIncomplete
|
|
|
|
CheckStkVtxKeyMissing
|
|
|
|
CheckStkVtxKeyMismatch
|
|
|
|
CheckStkRevKeyMissing
|
|
|
|
CheckStkRevKeyMismatch
|
|
|
|
CheckStkVtxCountMismatch
|
|
|
|
|
|
|
|
CheckRlxVidVtxMismatch
|
|
|
|
CheckRlxVtxIncomplete
|
|
|
|
CheckRlxVtxKeyMissing
|
|
|
|
CheckRlxVtxKeyMismatch
|
|
|
|
CheckRlxRevKeyMissing
|
|
|
|
CheckRlxRevKeyMismatch
|
|
|
|
|
2023-07-04 18:24:03 +00:00
|
|
|
CheckAnyVidVtxMissing
|
|
|
|
CheckAnyVtxEmptyKeyMissing
|
|
|
|
CheckAnyVtxEmptyKeyExpected
|
|
|
|
CheckAnyVtxEmptyKeyMismatch
|
2023-06-30 22:22:33 +00:00
|
|
|
CheckAnyRevVtxMissing
|
|
|
|
CheckAnyRevVtxDup
|
|
|
|
CheckAnyRevCountMismatch
|
|
|
|
CheckAnyVtxLockWithoutKey
|
|
|
|
|
|
|
|
# Backend structural check `checkBE()`
|
|
|
|
CheckBeVtxInvalid
|
|
|
|
CheckBeKeyInvalid
|
|
|
|
CheckBeVtxMissing
|
|
|
|
CheckBeKeyMissing
|
|
|
|
CheckBeKeyCantCompile
|
|
|
|
CheckBeKeyMismatch
|
|
|
|
CheckBeGarbledVGen
|
|
|
|
|
|
|
|
CheckBeCacheKeyMissing
|
|
|
|
CheckBeCacheKeyNonEmpty
|
|
|
|
CheckBeCacheVidUnsynced
|
|
|
|
CheckBeCacheKeyDangling
|
|
|
|
CheckBeCacheVtxDangling
|
|
|
|
CheckBeCacheKeyCantCompile
|
|
|
|
CheckBeCacheKeyMismatch
|
|
|
|
CheckBeCacheGarbledVGen
|
2023-05-30 11:47:47 +00:00
|
|
|
|
2023-06-02 10:04:29 +00:00
|
|
|
# Neighbour vertex, tree traversal `nearbyRight()` and `nearbyLeft()`
|
|
|
|
NearbyBeyondRange
|
|
|
|
NearbyBranchError
|
|
|
|
NearbyDanglingLink
|
|
|
|
NearbyEmptyHike
|
|
|
|
NearbyExtensionError
|
|
|
|
NearbyFailed
|
|
|
|
NearbyBranchExpected
|
|
|
|
NearbyLeafExpected
|
|
|
|
NearbyNestingTooDeep
|
|
|
|
NearbyPathTailUnexpected
|
|
|
|
NearbyPathTailInxOverflow
|
|
|
|
NearbyUnexpectedVtx
|
2023-06-30 22:22:33 +00:00
|
|
|
NearbyVidInvalid
|
2023-06-02 10:04:29 +00:00
|
|
|
|
2023-06-02 19:21:46 +00:00
|
|
|
# Deletion of vertices, `delete()`
|
|
|
|
DelPathTagError
|
|
|
|
DelLeafExpexted
|
|
|
|
DelLeafLocked
|
2023-06-30 22:22:33 +00:00
|
|
|
DelLeafUnexpected
|
2023-06-02 19:21:46 +00:00
|
|
|
DelBranchExpexted
|
|
|
|
DelBranchLocked
|
2023-06-30 22:22:33 +00:00
|
|
|
DelBranchWithoutRefs
|
2023-06-02 19:21:46 +00:00
|
|
|
DelExtLocked
|
2023-06-30 22:22:33 +00:00
|
|
|
DelVidStaleVtx
|
2023-06-02 19:21:46 +00:00
|
|
|
|
2023-06-09 11:17:37 +00:00
|
|
|
# Save permanently, `save()`
|
2023-06-20 13:26:25 +00:00
|
|
|
SaveBackendMissing
|
2023-07-04 18:24:03 +00:00
|
|
|
SaveStateRootMissing
|
2023-06-30 22:22:33 +00:00
|
|
|
SaveLeafVidRepurposed
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2023-07-04 18:24:03 +00:00
|
|
|
# Pop layer, `pop()`
|
|
|
|
PopStackUnderflow
|
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# Get functions form `aristo_get.nim`
|
|
|
|
GetLeafNotFound
|
|
|
|
|
|
|
|
# All backend and get functions form `aristo_get.nim`
|
|
|
|
GetVtxNotFound
|
|
|
|
GetKeyNotFound
|
|
|
|
|
|
|
|
# RocksDB backend
|
|
|
|
RdbBeCantCreateDataDir
|
|
|
|
RdbBeCantCreateBackupDir
|
|
|
|
RdbBeCantCreateTmpDir
|
|
|
|
RdbBeDriverInitError
|
|
|
|
RdbBeDriverGetError
|
|
|
|
RdbBeDriverDelError
|
|
|
|
RdbBeCreateSstWriter
|
|
|
|
RdbBeOpenSstWriter
|
|
|
|
RdbBeAddSstWriter
|
|
|
|
RdbBeFinishSstWriter
|
|
|
|
RdbBeIngestSstWriter
|
2023-06-09 11:17:37 +00:00
|
|
|
|
2023-05-30 11:47:47 +00:00
|
|
|
# End
|