mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-08 10:16:00 +00:00
* Extract RocksDB timing tests from snap unit tests as separate module why: Declutter, make space for more snap related unit tests. * Renamed `undumpNextGroup()` => `undumpBlocks()` why: Source file name is called `undump_blocks.nim` which should be sort of in sync with the method name(s). * Implement snap/1 server method `getByteCodes()` * Implement snap/1 client method `getByteCodes()` * Implement faculty for handling contract code fetching via snap/1 * Provide persistent storage for contract code records * Implement contract code snap sync fetch & store * Code massage, cosmetics * Unit tests for verifying snap sync snapshot dump details: Use `undump_kvp.dumpAllDb()` to dump any database.
89 lines
1.9 KiB
Nim
89 lines
1.9 KiB
Nim
# 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
|
|
HexaryError* = enum
|
|
NothingSerious = 0
|
|
|
|
AccountNotFound
|
|
AccountsNotSrictlyIncreasing
|
|
AccountRangesOverlap
|
|
LowerBoundAfterFirstEntry
|
|
LowerBoundProofError
|
|
NodeNotFound
|
|
RlpEncoding
|
|
SlotsNotFound
|
|
SlotsNotSrictlyIncreasing
|
|
TrieLoopAlert
|
|
TrieIsEmpty
|
|
TrieIsLockedForPerusal
|
|
TooManyChunksInAccountsQueue
|
|
TooManyQueuedStorageSlots
|
|
TooManyQueuedContracts
|
|
NoAccountsYet
|
|
|
|
# debug
|
|
LeafMaxExceeded
|
|
GarbledNextLeaf
|
|
|
|
# snap handler
|
|
DataSizeError
|
|
|
|
# range
|
|
LeafNodeExpected
|
|
FailedNextNode
|
|
|
|
# nearby/boundary proofs
|
|
NearbyExtensionError
|
|
NearbyBranchError
|
|
NearbyGarbledNode
|
|
NearbyNestingTooDeep
|
|
NearbyUnexpectedNode
|
|
NearbyFailed
|
|
NearbyEmptyPath
|
|
NearbyLeafExpected
|
|
NearbyDanglingLink
|
|
NearbyPathTail
|
|
NearbyBeyondRange
|
|
|
|
# envelope
|
|
DecomposeDegenerated
|
|
DecomposeDisjunct
|
|
|
|
# import
|
|
DifferentNodeValueExists
|
|
ExpectedNodeKeyDiffers
|
|
Rlp2Or17ListEntries
|
|
RlpBlobExpected
|
|
RlpBranchLinkExpected
|
|
RlpExtPathEncoding
|
|
RlpNonEmptyBlobExpected
|
|
|
|
# interpolate
|
|
AccountRepairBlocked
|
|
InternalDbInconsistency
|
|
RightBoundaryProofFailed
|
|
RootNodeMismatch
|
|
RootNodeMissing
|
|
|
|
# bulk storage
|
|
AddBulkItemFailed
|
|
CannotOpenRocksDbBulkSession
|
|
CommitBulkItemsFailed
|
|
NoRocksDbBackend
|
|
UnresolvedRepairNode
|
|
OSErrorException
|
|
IOErrorException
|
|
ExceptionError
|
|
StateRootNotFound
|
|
|
|
# End
|
|
|