ProviderError in reth_errors - Rust

Enum ProviderError 

pub enum ProviderError {
Show 44 variants Database(DatabaseError), Bal(BalError), Pruning(PruneSegmentError), StaticFileWriter(StaticFileWriterError), Rlp(Error), TrieWitnessError(String), SenderRecoveryError, BlockHashNotFound(FixedBytes<32>), BlockBodyIndicesNotFound(u64), StorageChangesetNotFound { block_number: u64, address: Address, storage_key: Box<FixedBytes<32>>, }, AccountChangesetNotFound { block_number: u64, address: Address, }, HeaderNotFound(HashOrNumber), TransactionNotFound(HashOrNumber), ReceiptNotFound(HashOrNumber), BestBlockNotFound, FinalizedBlockNotFound, SafeBlockNotFound, UnknownBlockHash(FixedBytes<32>), StateForHashNotFound(FixedBytes<32>), StateForNumberNotFound(u64), BlockNumberForTransactionIndexNotFound, StateRootMismatch(Box<RootMismatch>), UnwindStateRootMismatch(Box<RootMismatch>), StateAtBlockPruned(u64), BlockNotExecuted { requested: u64, executed: u64, }, BlockExpired { requested: u64, earliest_available: u64, }, UnsupportedProvider, MissingStaticFileSegmentPath(StaticFileSegment, PathBuf), MissingStaticFilePath(PathBuf), MissingHighestStaticFileBlock(StaticFileSegment), MissingStaticFileBlock(StaticFileSegment, u64), MissingStaticFileTx(StaticFileSegment, u64), FinalizedStaticFile(StaticFileSegment, u64), UnexpectedStaticFileBlockNumber(StaticFileSegment, u64, u64), UnexpectedStaticFileTxNumber(StaticFileSegment, u64, u64), CorruptedChangeSetStaticFile, UnboundedStartUnsupported, ReadOnlyStaticFileAccess, ConsistentView(Box<ConsistentViewError>), InvalidStorageOutput, MissingTrieUpdates(FixedBytes<32>), InsufficientChangesets { requested: u64, available: RangeInclusive<u64>, }, MustUnwind { data_source: &'static str, unwind_to: u64, }, Other(AnyError),
}
Expand description

Bundled errors variants thrown by various providers.

§

Database error.

§

BAL error.

§

Pruning error.

§

Static file writer error.

§

RLP error.

§

Trie witness error.

§

Error when recovering the sender for a transaction

§

The header number was not found for the given block hash.

§

A block body is missing.

§

The transition ID was found for the given address and storage key, but the changeset was not found.

Fields

The block number found for the address and storage key.

§

The block number was found for the given address, but the changeset was not found.

Fields

Block number found for the address.

When required header related data was not found but was required.

§

The specific transaction identified by hash or id is missing.

§

The specific receipt for a transaction identified by hash or id is missing

§

Unable to find the best block.

§

Unable to find the finalized block.

§

Unable to find the safe block.

§

Thrown when we failed to lookup a block for the pending state.

§

Thrown when we were unable to find a state for a block hash.

§

Thrown when we were unable to find a state for a block number.

§

Unable to find the block number for a given transaction index.

§

Root mismatch.

§

Root mismatch during unwind

§

State is not available for the given block number because it is pruned.

§

State is not available because the block has not been executed yet.

Fields

The block number that was requested.

The latest executed block number.

§

Block data is not available because history has expired.

The requested block number is below the earliest available block.

Fields

The block number that was requested.

The earliest available block number.

§

Provider does not support this particular request.

§

Available on crate feature std only.

Static File is not found at specified path.

§

Available on crate feature std only.

Static File is not found at specified path.

§

Highest block is not found for static file block.

§

Static File is not found for requested block.

§

Static File is not found for requested transaction.

§

Static File is finalized and cannot be written to.

§

Trying to insert data from an unexpected block number.

§

Trying to insert data from an unexpected block number.

§

Changeset static file is corrupted, and does not have offsets for changesets in each block

§

Error when constructing hashed post state reverts

§

Static File Provider was initialized as read-only.

§

Consistent view error.

§

Received invalid output from configured storage implementation.

§

Missing trie updates.

§

Insufficient changesets to revert to the requested block.

Fields

The block number requested for reversion

The available range of blocks with changesets

§

Inconsistency detected between static files/rocksdb and the DB during ProviderFactory::check_consistency. The database must be unwound to the specified block number to restore consistency.

Fields

The inconsistent data source(s).

The block number to which the database must be unwound.

§

Any other error type wrapped into a cloneable [AnyError].

§
§
§

Formats the value using the given formatter. Read more

§
§

Formats the value using the given formatter. Read more

§
§

Returns the lower-level source of this error, if any. Read more

1.0.0 · Source§

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

🔬This is a nightly-only experimental API. (error_generic_member_access #99301)

Provides type-based access to context intended for error reports. Read more

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

Source§
Source§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§
§

Converts to this type from the input type.

§

§
§
§
§
§
§
§

Source§
Source§
Source§
Source§
Source§

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)

Performs copy-assignment from self to dest. Read more

§
Source§

Source§

§
§

Causes self to use its Binary implementation when Debug-formatted.

§

Causes self to use its Display implementation when Debug-formatted.

§

Causes self to use its LowerExp implementation when Debug-formatted.

§

Causes self to use its LowerHex implementation when Debug-formatted.

§

Causes self to use its Octal implementation when Debug-formatted.

§

Causes self to use its Pointer implementation when Debug-formatted.

§

Causes self to use its UpperExp implementation when Debug-formatted.

§

Causes self to use its UpperHex implementation when Debug-formatted.

§

Formats each item in a sequence. Read more

Source§
Source§

Returns the argument unchanged.

§
§

Builds a [TxEnv] from a transaction and a sender address.

§
§

Builds a [TxEnv] from a transaction, its sender, and encoded transaction bytes.

§
§

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more

§

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Source§
Source§

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§
§
§

Pipes by value. This is generally the method you want to use. Read more

§

Borrows self and passes that borrow into the pipe function. Read more

§

Mutably borrows self and passes that borrow into the pipe function. Read more

§

Borrows self, then passes self.borrow() into the pipe function. Read more

§

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

§

Borrows self, then passes self.as_ref() into the pipe function.

§

Mutably borrows self, then passes self.as_mut() into the pipe function.

§

Borrows self, then passes self.deref() into the pipe function.

§

Mutably borrows self, then passes self.deref_mut() into the pipe function.

§
§

The alignment of pointer.

§

The type for initializers.

§

Initializes a with the given initializer. Read more

§

Dereferences the given pointer. Read more

§

Mutably dereferences the given pointer. Read more

§

Drops the object pointed to by the given pointer. Read more

Source§
§
§

Immutable access to a value. Read more

§
§

Immutable access to the Borrow<B> of a value. Read more

§

Mutable access to the BorrowMut<B> of a value. Read more

§

Immutable access to the AsRef<R> view of a value. Read more

§

Mutable access to the AsMut<R> view of a value. Read more

§

Immutable access to the Deref::Target of a value. Read more

§

Mutable access to the Deref::Target of a value. Read more

§

Calls .tap() only in debug builds, and is erased in release builds.

§

Calls .tap_mut() only in debug builds, and is erased in release builds.

§

Calls .tap_borrow() only in debug builds, and is erased in release builds.

§

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.

§

Calls .tap_ref() only in debug builds, and is erased in release builds.

§

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.

§

Calls .tap_deref() only in debug builds, and is erased in release builds.

§

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.

Source§
Source§

The resulting type after obtaining ownership.

Source§

Creates owned data from borrowed data, usually by cloning. Read more

Source§

Uses borrowed data to replace owned data, usually by cloning. Read more

Source§
§
§

Attempts to convert self into T using TryInto<T>. Read more

Source§
Source§

The type returned in the event of a conversion error.

Source§

Performs the conversion.

Source§
Source§

The type returned in the event of a conversion error.

Source§

Performs the conversion.

§

§

§
§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 48 bytes

Size for each variant:

  • Database: 39 bytes
  • Bal: 1 byte
  • Pruning: 1 byte
  • StaticFileWriter: 31 bytes
  • Rlp: 31 bytes
  • TrieWitnessError: 31 bytes
  • SenderRecoveryError: 0 bytes
  • BlockHashNotFound: 32 bytes
  • BlockBodyIndicesNotFound: 15 bytes
  • StorageChangesetNotFound: 39 bytes
  • AccountChangesetNotFound: 31 bytes
  • HeaderNotFound: 47 bytes
  • TransactionNotFound: 47 bytes
  • ReceiptNotFound: 47 bytes
  • BestBlockNotFound: 0 bytes
  • FinalizedBlockNotFound: 0 bytes
  • SafeBlockNotFound: 0 bytes
  • UnknownBlockHash: 32 bytes
  • StateForHashNotFound: 32 bytes
  • StateForNumberNotFound: 15 bytes
  • BlockNumberForTransactionIndexNotFound: 0 bytes
  • StateRootMismatch: 15 bytes
  • UnwindStateRootMismatch: 15 bytes
  • StateAtBlockPruned: 15 bytes
  • BlockNotExecuted: 23 bytes
  • BlockExpired: 23 bytes
  • UnsupportedProvider: 0 bytes
  • MissingStaticFileSegmentPath: 31 bytes
  • MissingStaticFilePath: 31 bytes
  • MissingHighestStaticFileBlock: 1 byte
  • MissingStaticFileBlock: 15 bytes
  • MissingStaticFileTx: 15 bytes
  • FinalizedStaticFile: 15 bytes
  • UnexpectedStaticFileBlockNumber: 23 bytes
  • UnexpectedStaticFileTxNumber: 23 bytes
  • CorruptedChangeSetStaticFile: 0 bytes
  • UnboundedStartUnsupported: 0 bytes
  • ReadOnlyStaticFileAccess: 0 bytes
  • ConsistentView: 15 bytes
  • InvalidStorageOutput: 0 bytes
  • MissingTrieUpdates: 32 bytes
  • InsufficientChangesets: 39 bytes
  • MustUnwind: 31 bytes
  • Other: 23 bytes