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-08-18 19:46:55 +00:00
|
|
|
BlobifyFilterRecordOverflow
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
DeblobNilArgument
|
|
|
|
DeblobUnknown
|
|
|
|
DeblobTooShort
|
|
|
|
DeblobBranchTooShort
|
|
|
|
DeblobBranchSizeGarbled
|
|
|
|
DeblobBranchInxOutOfRange
|
|
|
|
DeblobExtTooShort
|
|
|
|
DeblobExtSizeGarbled
|
|
|
|
DeblobExtGotLeafPrefix
|
|
|
|
DeblobLeafSizeGarbled
|
|
|
|
DeblobLeafGotExtPrefix
|
|
|
|
DeblobSizeGarbled
|
|
|
|
DeblobWrongType
|
2023-07-05 20:27:48 +00:00
|
|
|
DeblobPayloadTooShortInt64
|
|
|
|
DeblobPayloadTooShortInt256
|
|
|
|
DeblobNonceLenUnsupported
|
|
|
|
DeblobBalanceLenUnsupported
|
|
|
|
DeblobStorageLenUnsupported
|
|
|
|
DeblobCodeLenUnsupported
|
2023-08-18 19:46:55 +00:00
|
|
|
DeblobFilterTooShort
|
|
|
|
DeblobFilterGenTooShort
|
|
|
|
DeblobFilterTrpTooShort
|
|
|
|
DeblobFilterTrpVtxSizeGarbled
|
|
|
|
DeblobFilterSizeGarbled
|
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
|
2023-08-17 13:42:01 +00:00
|
|
|
HashifyDownVtxlevelExceeded
|
|
|
|
HashifyDownVtxLeafUnexpected
|
2023-05-30 21:21:15 +00:00
|
|
|
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
|
|
|
|
|
2023-08-17 13:42:01 +00:00
|
|
|
CheckBeCacheIsDirty
|
2023-06-30 22:22:33 +00:00
|
|
|
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-08-10 20:01:28 +00:00
|
|
|
# Functions from `aristo_filter.nim`
|
2023-08-17 13:42:01 +00:00
|
|
|
FilRoBackendOrMissing
|
2023-08-10 20:01:28 +00:00
|
|
|
FilStateRootMissing
|
|
|
|
FilStateRootMismatch
|
|
|
|
FilPrettyPointlessLayer
|
2023-08-17 13:42:01 +00:00
|
|
|
FilDudeFilterUpdateError
|
|
|
|
FilNotReadOnlyDude
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
# Get functions form `aristo_get.nim`
|
|
|
|
GetLeafNotFound
|
|
|
|
GetVtxNotFound
|
|
|
|
GetKeyNotFound
|
2023-08-21 18:18:06 +00:00
|
|
|
GetFilNotFound
|
2023-08-10 20:01:28 +00:00
|
|
|
GetIdgNotFound
|
2023-08-25 22:53:59 +00:00
|
|
|
GetFqsNotFound
|
2023-06-20 13:26:25 +00:00
|
|
|
|
|
|
|
# RocksDB backend
|
|
|
|
RdbBeCantCreateDataDir
|
|
|
|
RdbBeCantCreateBackupDir
|
|
|
|
RdbBeCantCreateTmpDir
|
|
|
|
RdbBeDriverInitError
|
|
|
|
RdbBeDriverGetError
|
|
|
|
RdbBeDriverDelError
|
|
|
|
RdbBeCreateSstWriter
|
|
|
|
RdbBeOpenSstWriter
|
|
|
|
RdbBeAddSstWriter
|
|
|
|
RdbBeFinishSstWriter
|
|
|
|
RdbBeIngestSstWriter
|
2023-06-09 11:17:37 +00:00
|
|
|
|
2023-07-05 13:50:11 +00:00
|
|
|
# Transaction wrappers
|
2023-08-07 17:45:23 +00:00
|
|
|
TxArgStaleTx
|
2023-08-17 13:42:01 +00:00
|
|
|
TxRoBackendOrMissing
|
2023-08-11 17:23:57 +00:00
|
|
|
TxNoPendingTx
|
2023-08-17 13:42:01 +00:00
|
|
|
TxPendingTx
|
2023-08-07 17:45:23 +00:00
|
|
|
TxNotTopTx
|
2023-08-11 17:23:57 +00:00
|
|
|
TxStackGarbled
|
2023-08-07 17:45:23 +00:00
|
|
|
TxStackUnderflow
|
2023-07-05 13:50:11 +00:00
|
|
|
|
2023-07-12 23:03:14 +00:00
|
|
|
# Miscelaneous handy helpers
|
|
|
|
PayloadTypeUnsupported
|
|
|
|
AccountRlpDecodingError
|
|
|
|
AccountStorageKeyMissing
|
|
|
|
AccountVtxUnsupported
|
|
|
|
AccountNodeUnsupported
|
|
|
|
|
2023-05-30 11:47:47 +00:00
|
|
|
# End
|