Skip to main content

cuprated/blockchain/
types.rs

1use tower::util::MapErr;
2
3use cuprate_blockchain::{service::BlockchainReadHandle, BlockchainError};
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(BlockchainError) -> tower::BoxError>;