diff --git a/beacon_node/beacon_chain/src/light_client_finality_update_verification.rs b/beacon_node/beacon_chain/src/light_client_finality_update_verification.rs index 638d2b4012e..86cc6695edb 100644 --- a/beacon_node/beacon_chain/src/light_client_finality_update_verification.rs +++ b/beacon_node/beacon_chain/src/light_client_finality_update_verification.rs @@ -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), } diff --git a/beacon_node/beacon_chain/src/light_client_optimistic_update_verification.rs b/beacon_node/beacon_chain/src/light_client_optimistic_update_verification.rs index 2d1a5cf97cf..8b7e6445273 100644 --- a/beacon_node/beacon_chain/src/light_client_optimistic_update_verification.rs +++ b/beacon_node/beacon_chain/src/light_client_optimistic_update_verification.rs @@ -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), } diff --git a/beacon_node/client/src/address_change_broadcast.rs b/beacon_node/client/src/address_change_broadcast.rs index 272ee908fba..69614159fec 100644 --- a/beacon_node/client/src/address_change_broadcast.rs +++ b/beacon_node/client/src/address_change_broadcast.rs @@ -99,7 +99,7 @@ pub async fn broadcast_address_changes( 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, diff --git a/beacon_node/eth1/src/block_cache.rs b/beacon_node/eth1/src/block_cache.rs index 26e160115e3..e676d17ab91 100644 --- a/beacon_node/eth1/src/block_cache.rs +++ b/beacon_node/eth1/src/block_cache.rs @@ -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), diff --git a/beacon_node/execution_layer/src/engine_api/json_structures.rs b/beacon_node/execution_layer/src/engine_api/json_structures.rs index eee413cd583..e8641be7953 100644 --- a/beacon_node/execution_layer/src/engine_api/json_structures.rs +++ b/beacon_node/execution_layer/src/engine_api/json_structures.rs @@ -386,8 +386,8 @@ pub struct JsonPayloadAttributes { } impl From 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, diff --git a/beacon_node/lighthouse_network/src/config.rs b/beacon_node/lighthouse_network/src/config.rs index 5d84753781f..47bd7b86679 100644 --- a/beacon_node/lighthouse_network/src/config.rs +++ b/beacon_node/lighthouse_network/src/config.rs @@ -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, diff --git a/beacon_node/lighthouse_network/src/service/mod.rs b/beacon_node/lighthouse_network/src/service/mod.rs index 4271b29948c..a38b7b2f2ef 100644 --- a/beacon_node/lighthouse_network/src/service/mod.rs +++ b/beacon_node/lighthouse_network/src/service/mod.rs @@ -849,7 +849,7 @@ impl Network { } /// 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 Network { } => { 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) diff --git a/beacon_node/lighthouse_network/tests/rpc_tests.rs b/beacon_node/lighthouse_network/tests/rpc_tests.rs index 0a6dd4aa047..176f783c992 100644 --- a/beacon_node/lighthouse_network/tests/rpc_tests.rs +++ b/beacon_node/lighthouse_network/tests/rpc_tests.rs @@ -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] diff --git a/beacon_node/network/src/service.rs b/beacon_node/network/src/service.rs index 5e71341ab0a..03715dd99f2 100644 --- a/beacon_node/network/src/service.rs +++ b/beacon_node/network/src/service.rs @@ -229,7 +229,7 @@ impl NetworkService { )> { 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 NetworkService { 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 NetworkService { 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; diff --git a/beacon_node/network/src/sync/range_sync/chain_collection.rs b/beacon_node/network/src/sync/range_sync/chain_collection.rs index 65ddcefe855..364514a3582 100644 --- a/beacon_node/network/src/sync/range_sync/chain_collection.rs +++ b/beacon_node/network/src/sync/range_sync/chain_collection.rs @@ -280,7 +280,7 @@ impl ChainCollection { 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); } diff --git a/beacon_node/network/src/sync/range_sync/range.rs b/beacon_node/network/src/sync/range_sync/range.rs index 72bb4d3be7d..e42fd936e61 100644 --- a/beacon_node/network/src/sync/range_sync/range.rs +++ b/beacon_node/network/src/sync/range_sync/range.rs @@ -464,7 +464,7 @@ mod tests { log: slog::Logger, /// To check what does sync send to the beacon processor. beacon_processor_rx: mpsc::Receiver>, - /// 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, /// Needed by range to handle communication with the network. cx: SyncNetworkContext, diff --git a/beacon_node/src/config.rs b/beacon_node/src/config.rs index 39bc7f8a24c..7f9aee8aef5 100644 --- a/beacon_node/src/config.rs +++ b/beacon_node/src/config.rs @@ -328,7 +328,7 @@ pub fn get_config( .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 ) })?;