Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment #12757

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/chain/src/state_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pub(crate) fn update_sync_hashes<T: ChainStoreAccess>(
}
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);
Expand Down
2 changes: 1 addition & 1 deletion chain/chain/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion chain/network/src/routing/graph_v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nearcore/src/state_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading