zebra_node_services/
lib.rs

1//! The interfaces of some Zebra node services.
2
3pub use zebra_chain::parameters::checkpoint::constants;
4pub mod mempool;
5pub mod service_traits;
6
7#[cfg(any(test, feature = "rpc-client"))]
8pub mod rpc_client;
9
10/// Error type alias to make working with tower traits easier.
11///
12/// Note: the 'static lifetime bound means that the *type* cannot have any
13/// non-'static lifetimes, (e.g., when a type contains a borrow and is
14/// parameterized by 'a), *not* that the object itself has 'static lifetime.
15pub type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;