Type Definition consensus::network_interface::ConsensusNetworkEvents
source · pub type ConsensusNetworkEvents = NetworkEvents<ConsensusMsg>;
Expand description
The interface from Network to Consensus layer.
ConsensusNetworkEvents
is a Stream
of PeerManagerNotification
where the
raw Bytes
direct-send and rpc messages are deserialized into
ConsensusMessage
types. ConsensusNetworkEvents
is a thin wrapper around
an channel::Receiver<PeerManagerNotification>
.