mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Propagate RPC through network service.
- Basic network message handler threading - Correct references
This commit is contained in:
@@ -19,17 +19,17 @@ impl From<u16> for RPCMethod {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum RPCRequest {
|
||||
Hello(HelloBody),
|
||||
Hello(HelloMessage),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum RPCResponse {
|
||||
Hello(HelloBody),
|
||||
Hello(HelloMessage),
|
||||
}
|
||||
|
||||
// request/response structs for RPC methods
|
||||
#[derive(Encode, Decode, Clone, Debug)]
|
||||
pub struct HelloBody {
|
||||
pub struct HelloMessage {
|
||||
pub network_id: u8,
|
||||
pub latest_finalized_root: Hash256,
|
||||
pub latest_finalized_epoch: Epoch,
|
||||
|
||||
Reference in New Issue
Block a user