Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: oliveredget <[email protected]>
  • Loading branch information
oliveredget committed Dec 31, 2024
1 parent 8d0699e commit 25644ae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions consensus/core/src/core_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl CoreThread {
let exists = *self.rx_subscriber_exists.borrow();
self.core.set_subscriber_exists(exists);
if !should_propose_before && self.core.should_propose() {
// If core cannnot propose before but can propose now, try to produce a new block to ensure liveness,
// If core cannot propose before but can propose now, try to produce a new block to ensure liveness,
// because block proposal could have been skipped.
self.core.new_block(Round::MAX, true)?;
}
Expand All @@ -159,7 +159,7 @@ impl CoreThread {
state.accepted_quorum_rounds
);
if !should_propose_before && self.core.should_propose() {
// If core cannnot propose before but can propose now, try to produce a new block to ensure liveness,
// If core cannot propose before but can propose now, try to produce a new block to ensure liveness,
// because block proposal could have been skipped.
self.core.new_block(Round::MAX, true)?;
}
Expand Down
2 changes: 1 addition & 1 deletion consensus/core/src/leader_scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub(crate) struct ScoringSubdag {
// TODO: Include skipped leaders as well
pub(crate) leaders: HashSet<BlockRef>,
// A map of votes to the stake of strongly linked blocks that include that vote
// Note: Inlcuding stake aggregator so that we can quickly check if it exceeds
// Note: Including stake aggregator so that we can quickly check if it exceeds
// quourum threshold and only include those scores for certain scoring strategies.
pub(crate) votes: BTreeMap<BlockRef, StakeAggregator<QuorumThreshold>>,
}
Expand Down
2 changes: 1 addition & 1 deletion consensus/core/src/linearizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl Linearizer {
.filter(|ancestor| {
// We skip the block if we already committed it or we reached a
// round that we already committed.
// TODO: for Fast Path we need to ammend the recursion rule here and allow us to commit blocks all the way up to the `gc_round`.
// TODO: for Fast Path we need to amend the recursion rule here and allow us to commit blocks all the way up to the `gc_round`.
// Some additional work will be needed to make sure that we keep the uncommitted blocks up to the `gc_round` across commits.
!committed.contains(ancestor)
&& last_committed_rounds[ancestor.author] < ancestor.round
Expand Down
2 changes: 1 addition & 1 deletion crates/sui/src/clever_error_rendering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! error message using the clever error rendering logic.
//!
//! The logic in this file is largely a stop-gap to provide Clever Error rendering in the CLI while
//! it still uses the JSON-RPC API. The new GraphQL API already renderd Clever Errors on the server
//! it still uses the JSON-RPC API. The new GraphQL API already rendered Clever Errors on the server
//! side in a much more robust and efficient way.
//!
//! Once the CLI is updated to use the GraphQL API, this file can be removed, and the GraphQL-based
Expand Down
2 changes: 1 addition & 1 deletion crates/sui/src/client_ptb/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ impl<'a, I: Iterator<Item = &'a str>> ProgramParser<'a, I> {
Ok(sp.wrap(addr))
}

/// Parse a numeric addres literal (must be prefixed by an `@` symbol).
/// Parse a numeric address literal (must be prefixed by an `@` symbol).
fn parse_address_literal(&mut self) -> PTBResult<Spanned<NumericalAddress>> {
let sp!(sp, _) = self.expect(Token::At).map_err(|e| {
err!(e.span => help: {
Expand Down

0 comments on commit 25644ae

Please sign in to comment.