fix typos (#4838)
This commit is contained in:
parent
c6583bb5fa
commit
90f78d141f
@ -34,7 +34,7 @@ pub enum Error {
|
||||
SigSlotStartIsNone,
|
||||
/// Failed to construct a LightClientFinalityUpdate from state.
|
||||
FailedConstructingUpdate,
|
||||
/// Beacon chain error occured.
|
||||
/// Beacon chain error occurred.
|
||||
BeaconChainError(BeaconChainError),
|
||||
LightClientUpdateError(LightClientUpdateError),
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ pub enum Error {
|
||||
FailedConstructingUpdate,
|
||||
/// Unknown block with parent root.
|
||||
UnknownBlockParentRoot(Hash256),
|
||||
/// Beacon chain error occured.
|
||||
/// Beacon chain error occurred.
|
||||
BeaconChainError(BeaconChainError),
|
||||
LightClientUpdateError(LightClientUpdateError),
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ pub async fn broadcast_address_changes<T: BeaconChainTypes>(
|
||||
messages: vec![pubsub_message],
|
||||
};
|
||||
// It seems highly unlikely that this unbounded send will fail, but
|
||||
// we handle the result nontheless.
|
||||
// we handle the result nonetheless.
|
||||
if let Err(e) = network_send.send(message) {
|
||||
debug!(
|
||||
log,
|
||||
|
@ -13,7 +13,7 @@ pub enum Error {
|
||||
/// Some `Eth1Block` was provided with the same block number but different data. The source
|
||||
/// of eth1 data is inconsistent.
|
||||
Conflicting(u64),
|
||||
/// The given block was not one block number higher than the higest known block number.
|
||||
/// The given block was not one block number higher than the highest known block number.
|
||||
NonConsecutive { given: u64, expected: u64 },
|
||||
/// Some invariant was violated, there is a likely bug in the code.
|
||||
Internal(String),
|
||||
|
@ -386,8 +386,8 @@ pub struct JsonPayloadAttributes {
|
||||
}
|
||||
|
||||
impl From<PayloadAttributes> for JsonPayloadAttributes {
|
||||
fn from(payload_atributes: PayloadAttributes) -> Self {
|
||||
match payload_atributes {
|
||||
fn from(payload_attributes: PayloadAttributes) -> Self {
|
||||
match payload_attributes {
|
||||
PayloadAttributes::V1(pa) => Self::V1(JsonPayloadAttributesV1 {
|
||||
timestamp: pa.timestamp,
|
||||
prev_randao: pa.prev_randao,
|
||||
|
@ -123,7 +123,7 @@ pub struct Config {
|
||||
/// Subscribe to all subnets for the duration of the runtime.
|
||||
pub subscribe_all_subnets: bool,
|
||||
|
||||
/// Import/aggregate all attestations recieved on subscribed subnets for the duration of the
|
||||
/// Import/aggregate all attestations received on subscribed subnets for the duration of the
|
||||
/// runtime.
|
||||
pub import_all_attestations: bool,
|
||||
|
||||
|
@ -849,7 +849,7 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {
|
||||
}
|
||||
|
||||
/// Inform the peer that their request produced an error.
|
||||
pub fn send_error_reponse(
|
||||
pub fn send_error_response(
|
||||
&mut self,
|
||||
peer_id: PeerId,
|
||||
id: PeerRequestId,
|
||||
@ -1603,7 +1603,7 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {
|
||||
} => {
|
||||
match reason {
|
||||
Ok(_) => {
|
||||
debug!(self.log, "Listener gracefuly closed"; "addresses" => ?addresses)
|
||||
debug!(self.log, "Listener gracefully closed"; "addresses" => ?addresses)
|
||||
}
|
||||
Err(reason) => {
|
||||
crit!(self.log, "Listener abruptly closed"; "addresses" => ?addresses, "reason" => ?reason)
|
||||
|
@ -715,7 +715,7 @@ fn test_tcp_blocks_by_range_single_empty_rpc() {
|
||||
}
|
||||
|
||||
// Tests a streamed, chunked BlocksByRoot RPC Message
|
||||
// The size of the reponse is a full `BeaconBlock`
|
||||
// The size of the response is a full `BeaconBlock`
|
||||
// which is greater than the Snappy frame size. Hence, this test
|
||||
// serves to test the snappy framing format as well.
|
||||
#[test]
|
||||
|
@ -229,7 +229,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
|
||||
)> {
|
||||
let network_log = executor.log().clone();
|
||||
// build the channels for external comms
|
||||
let (network_senders, network_recievers) = NetworkSenders::new();
|
||||
let (network_senders, network_receivers) = NetworkSenders::new();
|
||||
|
||||
#[cfg(feature = "disable-backfill")]
|
||||
warn!(
|
||||
@ -344,7 +344,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
|
||||
let NetworkReceivers {
|
||||
network_recv,
|
||||
validator_subscription_recv,
|
||||
} = network_recievers;
|
||||
} = network_receivers;
|
||||
|
||||
// create the network service and spawn the task
|
||||
let network_log = network_log.new(o!("service" => "network"));
|
||||
@ -635,7 +635,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
|
||||
id,
|
||||
reason,
|
||||
} => {
|
||||
self.libp2p.send_error_reponse(peer_id, id, error, reason);
|
||||
self.libp2p.send_error_response(peer_id, id, error, reason);
|
||||
}
|
||||
NetworkMessage::UPnPMappingEstablished { mappings } => {
|
||||
self.upnp_mappings = mappings;
|
||||
|
@ -280,7 +280,7 @@ impl<T: BeaconChainTypes, C: BlockStorage> ChainCollection<T, C> {
|
||||
old_id = Some(Some(syncing_id));
|
||||
} else {
|
||||
// chains have the same number of peers, pick the currently syncing
|
||||
// chain to avoid unnecesary switchings and try to advance it
|
||||
// chain to avoid unnecessary switchings and try to advance it
|
||||
new_id = syncing_id;
|
||||
old_id = Some(None);
|
||||
}
|
||||
|
@ -464,7 +464,7 @@ mod tests {
|
||||
log: slog::Logger,
|
||||
/// To check what does sync send to the beacon processor.
|
||||
beacon_processor_rx: mpsc::Receiver<BeaconWorkEvent<E>>,
|
||||
/// To set up different scenarios where sync is told about known/unkown blocks.
|
||||
/// To set up different scenarios where sync is told about known/unknown blocks.
|
||||
chain: Arc<FakeStorage>,
|
||||
/// Needed by range to handle communication with the network.
|
||||
cx: SyncNetworkContext<TestBeaconChainType>,
|
||||
|
@ -328,7 +328,7 @@ pub fn get_config<E: EthSpec>(
|
||||
.write_all(jwt_secret_key.as_bytes())
|
||||
.map_err(|e| {
|
||||
format!(
|
||||
"Error occured while writing to jwt_secret_key file: {:?}",
|
||||
"Error occurred while writing to jwt_secret_key file: {:?}",
|
||||
e
|
||||
)
|
||||
})?;
|
||||
|
Loading…
Reference in New Issue
Block a user