zksync_consensus_network 0.13.0

ZKsync consensus network component
Documentation
#![allow(missing_docs)]
use zksync_concurrency::oneshot;
use zksync_consensus_roles::validator;

/// Message types from the Consensus component.
#[derive(Debug, PartialEq)]
pub struct ConsensusInputMessage {
    pub message: validator::Signed<validator::ConsensusMsg>,
}

/// Consensus message received from the network.
#[derive(Debug)]
pub struct ConsensusReq {
    /// Payload.
    pub msg: validator::Signed<validator::ConsensusMsg>,
    /// Channel that should be used to notify the network component that
    /// processing of this message has been completed.
    /// Used for rate limiting.
    pub ack: oneshot::Sender<()>,
}