mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Rename RequestBeaconBlockRoots to BeaconBlockRoots for consistency
This commit is contained in:
@@ -6,7 +6,7 @@ use types::{Epoch, Hash256, Slot};
|
|||||||
pub enum RPCMethod {
|
pub enum RPCMethod {
|
||||||
Hello,
|
Hello,
|
||||||
Goodbye,
|
Goodbye,
|
||||||
RequestBeaconBlockRoots,
|
BeaconBlockRoots,
|
||||||
Unknown,
|
Unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ impl From<u16> for RPCMethod {
|
|||||||
match method_id {
|
match method_id {
|
||||||
0 => RPCMethod::Hello,
|
0 => RPCMethod::Hello,
|
||||||
1 => RPCMethod::Goodbye,
|
1 => RPCMethod::Goodbye,
|
||||||
10 => RPCMethod::RequestBeaconBlockRoots,
|
10 => RPCMethod::BeaconBlockRoots,
|
||||||
_ => RPCMethod::Unknown,
|
_ => RPCMethod::Unknown,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@ impl Into<u16> for RPCMethod {
|
|||||||
match self {
|
match self {
|
||||||
RPCMethod::Hello => 0,
|
RPCMethod::Hello => 0,
|
||||||
RPCMethod::Goodbye => 1,
|
RPCMethod::Goodbye => 1,
|
||||||
RPCMethod::RequestBeaconBlockRoots => 10,
|
RPCMethod::BeaconBlockRoots => 10,
|
||||||
_ => 0,
|
_ => 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,13 +36,13 @@ impl Into<u16> for RPCMethod {
|
|||||||
pub enum RPCRequest {
|
pub enum RPCRequest {
|
||||||
Hello(HelloMessage),
|
Hello(HelloMessage),
|
||||||
Goodbye(u64),
|
Goodbye(u64),
|
||||||
RequestBeaconBlockRoots(BeaconBlockRootsRequest),
|
BeaconBlockRoots(BeaconBlockRootsRequest),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum RPCResponse {
|
pub enum RPCResponse {
|
||||||
Hello(HelloMessage),
|
Hello(HelloMessage),
|
||||||
RequestBeaconBlockRoots(BeaconBlockRootsResponse),
|
BeaconBlockRoots(BeaconBlockRootsResponse),
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Request/Response data structures for RPC methods */
|
/* Request/Response data structures for RPC methods */
|
||||||
|
|||||||
Reference in New Issue
Block a user