diff --git a/zebrad/src/components/mempool/error.rs b/zebrad/src/components/mempool/error.rs index 0c56bc66..4f924599 100644 --- a/zebrad/src/components/mempool/error.rs +++ b/zebrad/src/components/mempool/error.rs @@ -11,7 +11,6 @@ use super::storage::{ #[derive(Error, Clone, Debug, PartialEq, Eq)] #[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))] -#[allow(dead_code)] pub enum MempoolError { #[error("mempool storage has a cached tip rejection for this exact transaction")] StorageExactTip(#[from] ExactTipRejectionError), @@ -29,12 +28,6 @@ pub enum MempoolError { #[error("transaction already exists in mempool")] InMempool, - #[error("transaction is committed in block {0:?}")] - InBlock(zebra_chain::block::Hash), - - #[error("transaction was not found in mempool")] - NotInMempool, - /// The transaction hash is already queued, so this request was ignored. /// /// Another peer has already gossiped the same hash to us, or the mempool crawler has fetched it. @@ -52,7 +45,4 @@ pub enum MempoolError { #[error("mempool is disabled since synchronization is behind the chain tip")] Disabled, - - #[error("error calling a service")] - ServiceError, }