,
api: Arc,
executor: T,
message_validator: RegisteredMessageValidator,
exit: E,
}
impl
ValidationNetwork
{
/// Create a new consensus networking object.
pub fn new(
network: Arc,
exit: E,
message_validator: RegisteredMessageValidator,
api: Arc,
executor: T,
) -> Self {
ValidationNetwork { network, exit, message_validator, api, executor }
}
}
impl
Clone for ValidationNetwork
{
fn clone(&self) -> Self {
ValidationNetwork {
network: self.network.clone(),
exit: self.exit.clone(),
api: self.api.clone(),
executor: self.executor.clone(),
message_validator: self.message_validator.clone(),
}
}
}
impl
ValidationNetwork
where
P: ProvideRuntimeApi + Send + Sync + 'static,
P::Api: ParachainHost,
E: Clone + Future