mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 12:11:59 +00:00
16 lines
384 B
Rust
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),
|
|
}
|