Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
VorobyevIlya committed Feb 27, 2025
1 parent 6a7d07a commit e3ac97a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion consensus/core/src/block_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions consensus/core/src/dag_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit e3ac97a

Please sign in to comment.