Remove unused error variants (#2941)
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
This commit is contained in:
parent
2a1d4281c5
commit
451448ef99
|
|
@ -11,7 +11,6 @@ use super::storage::{
|
||||||
|
|
||||||
#[derive(Error, Clone, Debug, PartialEq, Eq)]
|
#[derive(Error, Clone, Debug, PartialEq, Eq)]
|
||||||
#[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))]
|
#[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))]
|
||||||
#[allow(dead_code)]
|
|
||||||
pub enum MempoolError {
|
pub enum MempoolError {
|
||||||
#[error("mempool storage has a cached tip rejection for this exact transaction")]
|
#[error("mempool storage has a cached tip rejection for this exact transaction")]
|
||||||
StorageExactTip(#[from] ExactTipRejectionError),
|
StorageExactTip(#[from] ExactTipRejectionError),
|
||||||
|
|
@ -29,12 +28,6 @@ pub enum MempoolError {
|
||||||
#[error("transaction already exists in mempool")]
|
#[error("transaction already exists in mempool")]
|
||||||
InMempool,
|
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.
|
/// 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.
|
/// 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")]
|
#[error("mempool is disabled since synchronization is behind the chain tip")]
|
||||||
Disabled,
|
Disabled,
|
||||||
|
|
||||||
#[error("error calling a service")]
|
|
||||||
ServiceError,
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue