cuprated/blockchain/types.rs
1use tower::util::MapErr;
2
3use cuprate_blockchain::{cuprate_database::RuntimeError, service::BlockchainReadHandle};
4
5/// The [`BlockchainReadHandle`] with the [`tower::Service::Error`] mapped to conform to what the consensus crate requires.
6pub type ConsensusBlockchainReadHandle =
7 MapErr<BlockchainReadHandle, fn(RuntimeError) -> tower::BoxError>;