Files
lighthouse/beacon_node/network/src/messages.rs
2019-03-18 23:18:25 +11:00

16 lines
384 B
Rust

use libp2p::PeerId;
use libp2p::{HelloMessage, RPCEvent};
use types::{Hash256, Slot};
//TODO: This module can be entirely replaced in the RPC rewrite
/// Messages between nodes across the network.
//TODO: Remove this in the RPC rewrite
#[derive(Debug, Clone)]
pub enum NodeMessage {
RPC(RPCEvent),
BlockRequest,
// TODO: only for testing - remove
Message(String),
}