2023-05-11 14:25:29 +00:00
|
|
|
# nimbus-eth1
|
Core db update storage root management for sub tries (#1964)
* Aristo: Re-phrase `LayerDelta` and `LayerFinal` as object references
why:
Avoids copying in some cases
* Fix copyright header
* Aristo: Verify `leafTie.root` function argument for `merge()` proc
why:
Zero root will lead to inconsistent DB entry
* Aristo: Update failure condition for hash labels compiler `hashify()`
why:
Node need not be rejected as long as links are on the schedule. In
that case, `redo[]` is to become `wff.base[]` at a later stage.
This amends an earlier fix, part of #1952 by also testing against
the target nodes of the `wff.base[]` sets.
* Aristo: Add storage root glue record to `hashify()` schedule
why:
An account leaf node might refer to a non-resolvable storage root ID.
Storage root node chains will end up at the storage root. So the link
`storage-root->account-leaf` needs an extra item in the schedule.
* Aristo: fix error code returned by `fetchPayload()`
details:
Final error code is implied by the error code form the `hikeUp()`
function.
* CoreDb: Discard `createOk` argument in API `getRoot()` function
why:
Not needed for the legacy DB. For the `Arsto` DB, a lazy approach is
implemented where a stprage root node is created on-the-fly.
* CoreDb: Prevent `$$` logging in some cases
why:
Logging the function `$$` is not useful when it is used for internal
use, i.e. retrieving an an error text for logging.
* CoreDb: Add `tryHashFn()` to API for pretty printing
why:
Pretty printing must not change the hashification status for the
`Aristo` DB. So there is an independent API wrapper for getting the
node hash which never updated the hashes.
* CoreDb: Discard `update` argument in API `hash()` function
why:
When calling the API function `hash()`, the latest state is always
wanted. For a version that uses the current state as-is without checking,
the function `tryHash()` was added to the backend.
* CoreDb: Update opaque vertex ID objects for the `Aristo` backend
why:
For `Aristo`, vID objects encapsulate a numeric `VertexID`
referencing a vertex (rather than a node hash as used on the
legacy backend.) For storage sub-tries, there might be no initial
vertex known when the descriptor is created. So opaque vertex ID
objects are supported without a valid `VertexID` which will be
initalised on-the-fly when the first item is merged.
* CoreDb: Add pretty printer for opaque vertex ID objects
* Cosmetics, printing profiling data
* CoreDb: Fix segfault in `Aristo` backend when creating MPT descriptor
why:
Missing initialisation error
* CoreDb: Allow MPT to inherit shared context on `Aristo` backend
why:
Creates descriptors with different storage roots for the same
shared `Aristo` DB descriptor.
* Cosmetics, update diagnostic message items for `Aristo` backend
* Fix Copyright year
2024-01-11 19:11:38 +00:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH
|
2023-05-11 14:25:29 +00:00
|
|
|
# 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
|
2023-11-08 12:18:32 +00:00
|
|
|
RlpBranchHashKeyExpected
|
2023-05-11 14:25:29 +00:00
|
|
|
RlpEmptyBlobExpected
|
2023-11-08 12:18:32 +00:00
|
|
|
RlpExtHashKeyExpected
|
|
|
|
RlpHashKeyExpected
|
|
|
|
RlpNonEmptyBlobExpected
|
2023-05-11 14:25:29 +00:00
|
|
|
RlpOtherException
|
2023-11-08 12:18:32 +00:00
|
|
|
RlpRlpException
|
|
|
|
|
|
|
|
# Serialise decoder
|
|
|
|
SerCantResolveStorageRoot
|
2023-05-11 14:25:29 +00:00
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# Data record transcoders, `deblobify()` and `blobify()`
|
2023-09-05 13:57:20 +00:00
|
|
|
BlobifyNilFilter
|
|
|
|
BlobifyNilVertex
|
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
|
2023-11-08 12:18:32 +00:00
|
|
|
DeblobVtxTooShort
|
|
|
|
DeblobHashKeyExpected
|
2023-06-20 13:26:25 +00:00
|
|
|
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()`
|
2024-02-01 21:27:48 +00:00
|
|
|
HikeBranchMissingEdge
|
2023-06-22 11:13:24 +00:00
|
|
|
HikeBranchTailEmpty
|
2024-02-01 21:27:48 +00:00
|
|
|
HikeEmptyPath
|
2023-06-22 11:13:24 +00:00
|
|
|
HikeExtTailEmpty
|
|
|
|
HikeExtTailMismatch
|
Core db update storage root management for sub tries (#1964)
* Aristo: Re-phrase `LayerDelta` and `LayerFinal` as object references
why:
Avoids copying in some cases
* Fix copyright header
* Aristo: Verify `leafTie.root` function argument for `merge()` proc
why:
Zero root will lead to inconsistent DB entry
* Aristo: Update failure condition for hash labels compiler `hashify()`
why:
Node need not be rejected as long as links are on the schedule. In
that case, `redo[]` is to become `wff.base[]` at a later stage.
This amends an earlier fix, part of #1952 by also testing against
the target nodes of the `wff.base[]` sets.
* Aristo: Add storage root glue record to `hashify()` schedule
why:
An account leaf node might refer to a non-resolvable storage root ID.
Storage root node chains will end up at the storage root. So the link
`storage-root->account-leaf` needs an extra item in the schedule.
* Aristo: fix error code returned by `fetchPayload()`
details:
Final error code is implied by the error code form the `hikeUp()`
function.
* CoreDb: Discard `createOk` argument in API `getRoot()` function
why:
Not needed for the legacy DB. For the `Arsto` DB, a lazy approach is
implemented where a stprage root node is created on-the-fly.
* CoreDb: Prevent `$$` logging in some cases
why:
Logging the function `$$` is not useful when it is used for internal
use, i.e. retrieving an an error text for logging.
* CoreDb: Add `tryHashFn()` to API for pretty printing
why:
Pretty printing must not change the hashification status for the
`Aristo` DB. So there is an independent API wrapper for getting the
node hash which never updated the hashes.
* CoreDb: Discard `update` argument in API `hash()` function
why:
When calling the API function `hash()`, the latest state is always
wanted. For a version that uses the current state as-is without checking,
the function `tryHash()` was added to the backend.
* CoreDb: Update opaque vertex ID objects for the `Aristo` backend
why:
For `Aristo`, vID objects encapsulate a numeric `VertexID`
referencing a vertex (rather than a node hash as used on the
legacy backend.) For storage sub-tries, there might be no initial
vertex known when the descriptor is created. So opaque vertex ID
objects are supported without a valid `VertexID` which will be
initalised on-the-fly when the first item is merged.
* CoreDb: Add pretty printer for opaque vertex ID objects
* Cosmetics, printing profiling data
* CoreDb: Fix segfault in `Aristo` backend when creating MPT descriptor
why:
Missing initialisation error
* CoreDb: Allow MPT to inherit shared context on `Aristo` backend
why:
Creates descriptors with different storage roots for the same
shared `Aristo` DB descriptor.
* Cosmetics, update diagnostic message items for `Aristo` backend
* Fix Copyright year
2024-01-11 19:11:38 +00:00
|
|
|
HikeLeafUnexpected
|
2024-02-01 21:27:48 +00:00
|
|
|
HikeNoLegs
|
|
|
|
HikeRootMissing
|
2023-05-30 11:47:47 +00:00
|
|
|
|
|
|
|
# Path/nibble/key conversions in `aisto_path.nim`
|
|
|
|
PathExpected64Nibbles
|
2023-10-27 21:36:51 +00:00
|
|
|
PathAtMost64Nibbles
|
2023-05-30 11:47:47 +00:00
|
|
|
PathExpectedLeaf
|
2023-05-11 14:25:29 +00:00
|
|
|
|
2023-05-30 11:47:47 +00:00
|
|
|
# Merge leaf `merge()`
|
2023-12-04 20:39:26 +00:00
|
|
|
MergeBranchLinkLeafGarbled
|
|
|
|
MergeBranchLinkVtxPfxTooShort
|
2023-05-30 11:47:47 +00:00
|
|
|
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
|
2023-12-04 20:39:26 +00:00
|
|
|
MergeLeafPathOnBackendAlready
|
2023-05-30 21:21:15 +00:00
|
|
|
MergeNonBranchProofModeLock
|
2023-05-30 11:47:47 +00:00
|
|
|
MergeRootBranchLinkBusy
|
Core db update storage root management for sub tries (#1964)
* Aristo: Re-phrase `LayerDelta` and `LayerFinal` as object references
why:
Avoids copying in some cases
* Fix copyright header
* Aristo: Verify `leafTie.root` function argument for `merge()` proc
why:
Zero root will lead to inconsistent DB entry
* Aristo: Update failure condition for hash labels compiler `hashify()`
why:
Node need not be rejected as long as links are on the schedule. In
that case, `redo[]` is to become `wff.base[]` at a later stage.
This amends an earlier fix, part of #1952 by also testing against
the target nodes of the `wff.base[]` sets.
* Aristo: Add storage root glue record to `hashify()` schedule
why:
An account leaf node might refer to a non-resolvable storage root ID.
Storage root node chains will end up at the storage root. So the link
`storage-root->account-leaf` needs an extra item in the schedule.
* Aristo: fix error code returned by `fetchPayload()`
details:
Final error code is implied by the error code form the `hikeUp()`
function.
* CoreDb: Discard `createOk` argument in API `getRoot()` function
why:
Not needed for the legacy DB. For the `Arsto` DB, a lazy approach is
implemented where a stprage root node is created on-the-fly.
* CoreDb: Prevent `$$` logging in some cases
why:
Logging the function `$$` is not useful when it is used for internal
use, i.e. retrieving an an error text for logging.
* CoreDb: Add `tryHashFn()` to API for pretty printing
why:
Pretty printing must not change the hashification status for the
`Aristo` DB. So there is an independent API wrapper for getting the
node hash which never updated the hashes.
* CoreDb: Discard `update` argument in API `hash()` function
why:
When calling the API function `hash()`, the latest state is always
wanted. For a version that uses the current state as-is without checking,
the function `tryHash()` was added to the backend.
* CoreDb: Update opaque vertex ID objects for the `Aristo` backend
why:
For `Aristo`, vID objects encapsulate a numeric `VertexID`
referencing a vertex (rather than a node hash as used on the
legacy backend.) For storage sub-tries, there might be no initial
vertex known when the descriptor is created. So opaque vertex ID
objects are supported without a valid `VertexID` which will be
initalised on-the-fly when the first item is merged.
* CoreDb: Add pretty printer for opaque vertex ID objects
* Cosmetics, printing profiling data
* CoreDb: Fix segfault in `Aristo` backend when creating MPT descriptor
why:
Missing initialisation error
* CoreDb: Allow MPT to inherit shared context on `Aristo` backend
why:
Creates descriptors with different storage roots for the same
shared `Aristo` DB descriptor.
* Cosmetics, update diagnostic message items for `Aristo` backend
* Fix Copyright year
2024-01-11 19:11:38 +00:00
|
|
|
MergeRootMissing
|
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
|
2023-11-08 12:18:32 +00:00
|
|
|
MergeHashKeyDiffersFromCached
|
|
|
|
MergeHashKeyRevLookUpGarbled
|
2023-06-20 13:26:25 +00:00
|
|
|
MergeRootVidInvalid
|
|
|
|
MergeRootKeyInvalid
|
2024-02-22 08:24:58 +00:00
|
|
|
MergeProofInitMissing
|
2023-06-20 13:26:25 +00:00
|
|
|
MergeRevVidMustHaveBeenCached
|
|
|
|
MergeNodeVtxDiffersFromExisting
|
2023-06-09 11:17:37 +00:00
|
|
|
MergeRootKeyDiffersForVid
|
2023-11-08 12:18:32 +00:00
|
|
|
MergeNodeVtxDuplicates
|
2024-02-22 08:24:58 +00:00
|
|
|
MergeRootKeyMissing
|
|
|
|
MergeRootArgsIncomplete
|
2023-05-30 21:21:15 +00:00
|
|
|
|
2024-02-08 16:32:16 +00:00
|
|
|
# Utils
|
|
|
|
UtilsAccPathMissing
|
|
|
|
UtilsAccPathWithoutLeaf
|
|
|
|
UtilsAccUnaccessible
|
|
|
|
UtilsAccWrongStorageRoot
|
|
|
|
UtilsStoRootMissing
|
|
|
|
|
2023-05-30 21:21:15 +00:00
|
|
|
# Update `Merkle` hashes `hashify()`
|
2024-02-22 08:24:58 +00:00
|
|
|
HashifyVtxUnresolved
|
|
|
|
HashifyRootVtxUnresolved
|
|
|
|
HashifyProofHashMismatch
|
2023-06-30 22:22:33 +00:00
|
|
|
|
|
|
|
# Cache checker `checkCache()`
|
2023-12-12 17:47:41 +00:00
|
|
|
CheckStkKeyStrayZeroEntry
|
|
|
|
CheckStkVtxIncomplete
|
|
|
|
CheckStkVtxKeyMismatch
|
|
|
|
CheckStkVtxKeyMissing
|
2023-06-30 22:22:33 +00:00
|
|
|
|
|
|
|
CheckRlxVidVtxMismatch
|
|
|
|
CheckRlxVtxIncomplete
|
|
|
|
CheckRlxVtxKeyMissing
|
|
|
|
CheckRlxVtxKeyMismatch
|
|
|
|
|
2023-07-04 18:24:03 +00:00
|
|
|
CheckAnyVtxEmptyKeyMissing
|
|
|
|
CheckAnyVtxEmptyKeyExpected
|
|
|
|
CheckAnyVtxEmptyKeyMismatch
|
2023-11-08 12:18:32 +00:00
|
|
|
CheckAnyVtxBranchLinksMissing
|
|
|
|
CheckAnyVtxExtPfxMissing
|
|
|
|
CheckAnyVtxLockWithoutKey
|
2023-06-30 22:22:33 +00:00
|
|
|
|
|
|
|
# Backend structural check `checkBE()`
|
|
|
|
CheckBeVtxInvalid
|
|
|
|
CheckBeVtxMissing
|
2023-11-08 12:18:32 +00:00
|
|
|
CheckBeVtxBranchLinksMissing
|
|
|
|
CheckBeVtxExtPfxMissing
|
|
|
|
CheckBeKeyInvalid
|
2023-06-30 22:22:33 +00:00
|
|
|
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-09-11 20:38:49 +00:00
|
|
|
CheckBeFifoSrcTrgMismatch
|
|
|
|
CheckBeFifoTrgNotStateRoot
|
|
|
|
|
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
|
|
|
|
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()`
|
|
|
|
DelBranchExpexted
|
|
|
|
DelBranchLocked
|
2023-06-30 22:22:33 +00:00
|
|
|
DelBranchWithoutRefs
|
2024-02-12 19:37:00 +00:00
|
|
|
DelDanglingStoTrie
|
2023-06-02 19:21:46 +00:00
|
|
|
DelExtLocked
|
2024-02-12 19:37:00 +00:00
|
|
|
DelLeafExpexted
|
|
|
|
DelLeafLocked
|
|
|
|
DelLeafUnexpected
|
|
|
|
DelPathNotFound
|
|
|
|
DelPathTagError
|
2024-02-01 21:27:48 +00:00
|
|
|
DelSubTreeTooBig
|
|
|
|
DelSubTreeVoidRoot
|
2024-02-12 19:37:00 +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-09-05 18:00:40 +00:00
|
|
|
FilBackendMissing
|
|
|
|
FilBackendRoMode
|
2023-09-11 20:38:49 +00:00
|
|
|
FilBackStepsExpected
|
2023-08-17 13:42:01 +00:00
|
|
|
FilDudeFilterUpdateError
|
2023-09-05 18:00:40 +00:00
|
|
|
FilExecDublicateSave
|
|
|
|
FilExecHoldExpected
|
|
|
|
FilExecOops
|
|
|
|
FilExecSaveMissing
|
|
|
|
FilExecStackUnderflow
|
2023-09-11 20:38:49 +00:00
|
|
|
FilFilterInvalid
|
|
|
|
FilFilterNotFound
|
|
|
|
FilInxByQidFailed
|
|
|
|
FilNegativeEpisode
|
2023-09-05 18:00:40 +00:00
|
|
|
FilNilFilterRejected
|
2023-09-11 20:38:49 +00:00
|
|
|
FilNoMatchOnFifo
|
2023-09-05 18:00:40 +00:00
|
|
|
FilPrettyPointlessLayer
|
|
|
|
FilQidByLeFidFailed
|
2023-09-05 13:57:20 +00:00
|
|
|
FilQuSchedDisabled
|
2023-09-05 18:00:40 +00:00
|
|
|
FilStateRootMismatch
|
|
|
|
FilStateRootMissing
|
|
|
|
FilTrgSrcMismatch
|
|
|
|
FilTrgTopSrcMismatch
|
2023-09-11 20:38:49 +00:00
|
|
|
FilSiblingsCommitUnfinshed
|
2024-02-01 21:27:48 +00:00
|
|
|
FilSrcTrgInconsistent
|
2023-06-20 13:26:25 +00:00
|
|
|
|
2023-10-27 21:36:51 +00:00
|
|
|
# Get functions from `aristo_get.nim`
|
2023-12-19 12:39:23 +00:00
|
|
|
GetLeafMissing
|
|
|
|
GetKeyUpdateNeeded
|
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
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
|
|
|
|
2023-10-27 21:36:51 +00:00
|
|
|
# Fetch functions from `aristo_fetch.nim`
|
|
|
|
FetchPathNotFound
|
2024-02-01 21:27:48 +00:00
|
|
|
LeafKeyInvalid
|
2023-10-27 21:36:51 +00:00
|
|
|
|
2023-06-20 13:26:25 +00:00
|
|
|
# RocksDB backend
|
|
|
|
RdbBeCantCreateDataDir
|
|
|
|
RdbBeCantCreateTmpDir
|
|
|
|
RdbBeDriverInitError
|
|
|
|
RdbBeDriverGetError
|
|
|
|
RdbBeDriverDelError
|
|
|
|
RdbBeCreateSstWriter
|
|
|
|
RdbBeOpenSstWriter
|
|
|
|
RdbBeAddSstWriter
|
|
|
|
RdbBeFinishSstWriter
|
|
|
|
RdbBeIngestSstWriter
|
2023-11-08 12:18:32 +00:00
|
|
|
RdbHashKeyExpected
|
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-09-12 18:45:12 +00:00
|
|
|
TxBackendNotWritable
|
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-09-15 15:23:53 +00:00
|
|
|
TxGarbledSpan
|
2023-07-05 13:50:11 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
# Functions from `aristo_desc.nim`
|
2023-09-11 20:38:49 +00:00
|
|
|
MustBeOnCentre
|
|
|
|
NotAllowedOnCentre
|
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
# Functions from `aristo_utils.nim`
|
|
|
|
AccRlpDecodingError
|
|
|
|
AccStorageKeyMissing
|
|
|
|
AccVtxUnsupported
|
|
|
|
AccNodeUnsupported
|
2023-07-12 23:03:14 +00:00
|
|
|
PayloadTypeUnsupported
|
2024-03-12 03:04:46 +00:00
|
|
|
|
2024-02-01 21:27:48 +00:00
|
|
|
# Miscelaneous handy helpers
|
|
|
|
AccRootUnacceptable
|
Core db update storage root management for sub tries (#1964)
* Aristo: Re-phrase `LayerDelta` and `LayerFinal` as object references
why:
Avoids copying in some cases
* Fix copyright header
* Aristo: Verify `leafTie.root` function argument for `merge()` proc
why:
Zero root will lead to inconsistent DB entry
* Aristo: Update failure condition for hash labels compiler `hashify()`
why:
Node need not be rejected as long as links are on the schedule. In
that case, `redo[]` is to become `wff.base[]` at a later stage.
This amends an earlier fix, part of #1952 by also testing against
the target nodes of the `wff.base[]` sets.
* Aristo: Add storage root glue record to `hashify()` schedule
why:
An account leaf node might refer to a non-resolvable storage root ID.
Storage root node chains will end up at the storage root. So the link
`storage-root->account-leaf` needs an extra item in the schedule.
* Aristo: fix error code returned by `fetchPayload()`
details:
Final error code is implied by the error code form the `hikeUp()`
function.
* CoreDb: Discard `createOk` argument in API `getRoot()` function
why:
Not needed for the legacy DB. For the `Arsto` DB, a lazy approach is
implemented where a stprage root node is created on-the-fly.
* CoreDb: Prevent `$$` logging in some cases
why:
Logging the function `$$` is not useful when it is used for internal
use, i.e. retrieving an an error text for logging.
* CoreDb: Add `tryHashFn()` to API for pretty printing
why:
Pretty printing must not change the hashification status for the
`Aristo` DB. So there is an independent API wrapper for getting the
node hash which never updated the hashes.
* CoreDb: Discard `update` argument in API `hash()` function
why:
When calling the API function `hash()`, the latest state is always
wanted. For a version that uses the current state as-is without checking,
the function `tryHash()` was added to the backend.
* CoreDb: Update opaque vertex ID objects for the `Aristo` backend
why:
For `Aristo`, vID objects encapsulate a numeric `VertexID`
referencing a vertex (rather than a node hash as used on the
legacy backend.) For storage sub-tries, there might be no initial
vertex known when the descriptor is created. So opaque vertex ID
objects are supported without a valid `VertexID` which will be
initalised on-the-fly when the first item is merged.
* CoreDb: Add pretty printer for opaque vertex ID objects
* Cosmetics, printing profiling data
* CoreDb: Fix segfault in `Aristo` backend when creating MPT descriptor
why:
Missing initialisation error
* CoreDb: Allow MPT to inherit shared context on `Aristo` backend
why:
Creates descriptors with different storage roots for the same
shared `Aristo` DB descriptor.
* Cosmetics, update diagnostic message items for `Aristo` backend
* Fix Copyright year
2024-01-11 19:11:38 +00:00
|
|
|
MptContextMissing
|
2024-02-01 21:27:48 +00:00
|
|
|
MptRootUnacceptable
|
2024-02-14 10:02:09 +00:00
|
|
|
MptRootMissing
|
2023-09-26 09:21:13 +00:00
|
|
|
NotImplemented
|
2024-02-01 21:27:48 +00:00
|
|
|
VidContextLocked
|
2023-07-12 23:03:14 +00:00
|
|
|
|
2023-05-30 11:47:47 +00:00
|
|
|
# End
|