diff --git a/chain/chain/src/state_sync.rs b/chain/chain/src/state_sync.rs index 2daa292b14c..0eea56ffc23 100644 --- a/chain/chain/src/state_sync.rs +++ b/chain/chain/src/state_sync.rs @@ -193,7 +193,7 @@ pub(crate) fn update_sync_hashes( } if prev_header.epoch_id() != header.epoch_id() { // Here we remove any sync hashes stored for old epochs after saving [0,...,0] in the StateSyncNewChunks - // columnn for this block. This means we will no longer remember sync hashes for these old epochs, which + // column for this block. This means we will no longer remember sync hashes for these old epochs, which // should be fine as we only care to state sync to (and provide state parts for) the latest state on_new_epoch(store_update, header)?; return remove_old_epochs(&chain_store.store(), store_update, header, &prev_header); diff --git a/chain/chain/src/store/mod.rs b/chain/chain/src/store/mod.rs index 20c471cb902..4648372e83f 100644 --- a/chain/chain/src/store/mod.rs +++ b/chain/chain/src/store/mod.rs @@ -948,7 +948,7 @@ impl ChainStore { let int_part = int_part.try_into().map_err(|_| { io::Error::new( io::ErrorKind::InvalidData, - format!("Bad StateSyncDump columnn key length: {}", key.len()), + format!("Bad StateSyncDump column key length: {}", key.len()), ) })?; let shard_id = ShardId::from_le_bytes(int_part); diff --git a/chain/client/src/stateless_validation/state_witness_producer.rs b/chain/client/src/stateless_validation/state_witness_producer.rs index 32ebeca6725..ebba35b593a 100644 --- a/chain/client/src/stateless_validation/state_witness_producer.rs +++ b/chain/client/src/stateless_validation/state_witness_producer.rs @@ -329,7 +329,7 @@ impl Client { /// that those receipts really originate from the right chunks. /// TODO(resharding): `get_incoming_receipts_for_shard` generates invalid proofs on resharding /// boundaries, because it removes the receipts that target the other half of a split shard, - /// which makes the proof invalid. We need to collect the original proof and later, after verifcation, + /// which makes the proof invalid. We need to collect the original proof and later, after verification, /// filter it to remove the receipts that were meant for the other half of the split shard. fn collect_source_receipt_proofs( &self, diff --git a/chain/network/src/routing/graph_v2/mod.rs b/chain/network/src/routing/graph_v2/mod.rs index 37c6ff22cf1..40373f6ec94 100644 --- a/chain/network/src/routing/graph_v2/mod.rs +++ b/chain/network/src/routing/graph_v2/mod.rs @@ -51,7 +51,7 @@ struct PeerDistances { struct Inner { config: GraphConfigV2, - /// Data structure maintaing information about the entire known network + /// Data structure maintaining information about the entire known network edge_cache: EdgeCache, /// Edges of the local node's direct connections diff --git a/nearcore/src/state_sync.rs b/nearcore/src/state_sync.rs index dc824731bd1..c2cfea16100 100644 --- a/nearcore/src/state_sync.rs +++ b/nearcore/src/state_sync.rs @@ -290,7 +290,7 @@ enum NewDump { /// `ShardDump` struct, which we check in `check_parts_upload()`. /// /// Separately, every so often we check whether there's a new epoch to dump state for (in `check_head()`) and whether other processes -/// have uploaded some state parts that we can therfore skip (in `check_stored_parts()`). +/// have uploaded some state parts that we can therefore skip (in `check_stored_parts()`). struct StateDumper { clock: Clock, chain_id: String,