mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-29 05:25:34 +00:00
4ff0948fed
* Added inspect module why: Find dangling references for trie healing support. details: + This patch set provides only the inspect module and some unit tests. + There are also extensive unit tests which need bulk data from the `nimbus-eth1-blob` module. * Alternative pivot finder why: Attempt to be faster on start up. Also tying to decouple pivot finder somehow by providing different mechanisms (this one runs in `single` mode.) * Use inspect module for healing details: + After some progress with account and storage data, the inspect facility is used to find dangling links in the database to be filled nose-wise. + This is a crude attempt to cobble together functional elements. The set up needs to be honed. * fix scheduler to avoid starting dead peers why: Some peers drop out while in `sleepAsync()`. So extra `if` clauses make sure that this event is detected early. * Bug fixes causing crashes details: + prettify.toPC(): int/intToStr() numeric range over/underflow + hexary_inspect.hexaryInspectPath(): take care of half initialised step with branch but missing index into branch array * improve handling of dropped peers in alternaive pivot finder why: Strange things may happen while querying data from the network. Additional checks make sure that the state of other peers is updated immediately. * Update trace messages * reorganise snap fetch & store schedule
35 lines
960 B
Nim
35 lines
960 B
Nim
# Nimbus
|
|
# 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
|
|
ComError* = enum
|
|
ComNothingSerious
|
|
ComAccountsMaxTooLarge
|
|
ComAccountsMinTooSmall
|
|
ComEmptyAccountsArguments
|
|
ComEmptyRequestArguments
|
|
ComMissingProof
|
|
ComNetworkProblem
|
|
ComNoAccountsForStateRoot
|
|
ComNoByteCodesAvailable
|
|
ComNoDataForProof
|
|
ComNoStorageForAccounts
|
|
ComNoTrieNodesAvailable
|
|
ComResponseTimeout
|
|
ComTooManyByteCodes
|
|
ComTooManyStorageSlots
|
|
ComTooManyTrieNodes
|
|
|
|
# Other errors not directly related to communication
|
|
ComInspectDbFailed
|
|
ComImportAccountsFailed
|
|
|
|
# End
|