mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
fix spelling issues
This commit is contained in:
@@ -163,7 +163,7 @@ pub enum Response<E: EthSpec> {
|
||||
BlocksByRoot(Option<Arc<SignedBeaconBlock<E>>>),
|
||||
/// A response to a get `EXECUTION_PAYLOAD_ENVELOPES_BY_ROOT` request.
|
||||
PayloadEnvelopesByRoot(Option<Arc<SignedExecutionPayloadEnvelope<E>>>),
|
||||
/// A response to a get `EXECUTION_PAYLOAD_ENVELOPES_BYH_RANGE` request.
|
||||
/// A response to a get `EXECUTION_PAYLOAD_ENVELOPES_BY_RANGE` request.
|
||||
PayloadEnvelopesByRange(Option<Arc<SignedExecutionPayloadEnvelope<E>>>),
|
||||
/// A response to a get BLOBS_BY_ROOT request.
|
||||
BlobsByRoot(Option<Arc<BlobSidecar<E>>>),
|
||||
@@ -195,7 +195,7 @@ impl<E: EthSpec> std::convert::From<Response<E>> for RpcResponse<E> {
|
||||
None => RpcResponse::StreamTermination(ResponseTermination::PayloadEnvelopesByRoot),
|
||||
},
|
||||
Response::PayloadEnvelopesByRange(r) => match r {
|
||||
Some(p) => RpcResponse::Success(RpcSuccessResponse::PayloadEnvelopesbyRange(p)),
|
||||
Some(p) => RpcResponse::Success(RpcSuccessResponse::PayloadEnvelopesByRange(p)),
|
||||
None => {
|
||||
RpcResponse::StreamTermination(ResponseTermination::PayloadEnvelopesByRange)
|
||||
}
|
||||
|
||||
@@ -1661,7 +1661,7 @@ impl<E: EthSpec> Network<E> {
|
||||
RpcSuccessResponse::BlocksByRoot(resp) => {
|
||||
self.build_response(id, peer_id, Response::BlocksByRoot(Some(resp)))
|
||||
}
|
||||
RpcSuccessResponse::PayloadEnvelopesbyRange(resp) => self.build_response(
|
||||
RpcSuccessResponse::PayloadEnvelopesByRange(resp) => self.build_response(
|
||||
id,
|
||||
peer_id,
|
||||
Response::PayloadEnvelopesByRange(Some(resp)),
|
||||
|
||||
Reference in New Issue
Block a user