From e3ac97a6302fc01a77284d8843c9dc9c27f433d6 Mon Sep 17 00:00:00 2001 From: ilyavorobev Date: Thu, 27 Feb 2025 21:07:27 +0100 Subject: [PATCH] typos --- consensus/core/src/block_verifier.rs | 2 +- consensus/core/src/dag_state.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/consensus/core/src/block_verifier.rs b/consensus/core/src/block_verifier.rs index 319cdc744c6..76d6c64b135 100644 --- a/consensus/core/src/block_verifier.rs +++ b/consensus/core/src/block_verifier.rs @@ -196,7 +196,7 @@ impl BlockVerifier for SignedBlockVerifier { ) -> ConsensusResult<()> { if gc_enabled { // TODO: will be removed with new timestamp calculation is in place as all these - // will be irrelevant. When gc is enabled we don't have gaurantees + // will be irrelevant. When gc is enabled we don't have guarantees // that all ancestors will be available. We'll take into account only the passed // gc_round ones for the timestamp check. let mut max_timestamp_ms = BlockTimestampMs::MIN; diff --git a/consensus/core/src/dag_state.rs b/consensus/core/src/dag_state.rs index d4eab089afd..0ee402ce135 100644 --- a/consensus/core/src/dag_state.rs +++ b/consensus/core/src/dag_state.rs @@ -1641,13 +1641,13 @@ mod test { // Last commit index should be 5. assert_eq!(dag_state.last_commit_index(), 5); - // This is the last_commmit_rounds of the first 5 commits that were flushed + // This is the last_commit_rounds of the first 5 commits that were flushed let expected_last_committed_rounds = vec![4, 5, 4, 4]; assert_eq!( dag_state.last_committed_rounds(), expected_last_committed_rounds ); - // Unscored subdags will be recoverd based on the flushed commits and no commit + // Unscored subdags will be recovered based on the flushed commits and no commit // info assert_eq!(dag_state.scoring_subdags_count(), 5); } @@ -1759,7 +1759,7 @@ mod test { // Last commit index should be 7. assert_eq!(dag_state.last_commit_index(), 7); - // This is the last_commmit_rounds of the first 7 commits that were flushed + // This is the last_commit_rounds of the first 7 commits that were flushed let expected_last_committed_rounds = vec![5, 6, 6, 7]; assert_eq!( dag_state.last_committed_rounds(),