zebra-consensus 5.0.1

Implementation of Zcash consensus checks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Trait aliases for block verification Tower services.
//!
//! This trait provides a convenient alias for `tower::Service`
//! implementations that operate on Zebra block verification request and response types.
//!
//! - [`BlockVerifierService`]: for services that handle block verification requests.

use crate::router::Request;
use zebra_chain::block::Hash;
use zebra_node_services::service_traits::ZebraService;

/// Trait alias for services handling block verification requests.
pub trait BlockVerifierService: ZebraService<Request, Hash> {}

impl<T> BlockVerifierService for T where T: ZebraService<Request, Hash> {}