Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rm unused error variants #12763

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions crates/storage/errors/src/provider.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{db::DatabaseError, lockfile::StorageLockError, writer::UnifiedStorageWriterError};
use alloy_eips::BlockHashOrNumber;
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256, U256};
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256};
use derive_more::Display;
use reth_primitives::{GotExpected, StaticFileSegment, TxHashOrNumber};

Expand Down Expand Up @@ -81,15 +81,6 @@ pub enum ProviderError {
/// Unable to find the safe block.
#[display("safe block does not exist")]
SafeBlockNotFound,
/// Mismatch of sender and transaction.
#[display("mismatch of sender and transaction id {tx_id}")]
MismatchOfTransactionAndSenderId {
/// The transaction ID.
tx_id: TxNumber,
},
/// Block body wrong transaction count.
#[display("stored block indices does not match transaction count")]
BlockBodyTransactionCount,
/// Thrown when the cache service task dropped.
#[display("cache service task stopped")]
CacheServiceUnavailable,
Expand Down Expand Up @@ -139,9 +130,6 @@ pub enum ProviderError {
/// Static File Provider was initialized as read-only.
#[display("cannot get a writer on a read-only environment.")]
ReadOnlyStaticFileAccess,
/// Error encountered when the block number conversion from U256 to u64 causes an overflow.
#[display("failed to convert block number U256 to u64: {_0}")]
BlockNumberOverflow(U256),
/// Consistent view error.
#[display("failed to initialize consistent view: {_0}")]
ConsistentView(Box<ConsistentViewError>),
Expand Down
Loading