diff --git a/src/ripple/app/consensus/RCLConsensus.cpp b/src/ripple/app/consensus/RCLConsensus.cpp index 876b4acd2c..b93cf6347f 100644 --- a/src/ripple/app/consensus/RCLConsensus.cpp +++ b/src/ripple/app/consensus/RCLConsensus.cpp @@ -568,7 +568,7 @@ RCLConsensus::Adaptor::doAccept( auto txn = std::make_shared(sit); // Disputed pseudo-transactions that were not accepted - // can't be succesfully applied in the next ledger + // can't be successfully applied in the next ledger if (isPseudoTx(*txn)) continue; diff --git a/src/ripple/app/consensus/RCLConsensus.h b/src/ripple/app/consensus/RCLConsensus.h index ef3fb8206c..61f3531ce1 100644 --- a/src/ripple/app/consensus/RCLConsensus.h +++ b/src/ripple/app/consensus/RCLConsensus.h @@ -173,7 +173,7 @@ class RCLConsensus //--------------------------------------------------------------------- // The following members implement the generic Consensus requirements // and are marked private to indicate ONLY Consensus will call - // them (via friendship). Since they are called only from Consenus + // them (via friendship). Since they are called only from Consensus // methods and since RCLConsensus::consensus_ should only be accessed // under lock, these will only be called under lock. // @@ -225,7 +225,7 @@ class RCLConsensus bool hasOpenTransactions() const; - /** Number of proposers that have vallidated the given ledger + /** Number of proposers that have validated the given ledger @param h The hash of the ledger of interest @return the number of proposers that validated a ledger @@ -337,7 +337,7 @@ class RCLConsensus @param ne Event type for notification @param ledger The ledger at the time of the state change - @param haveCorrectLCL Whether we believ we have the correct LCL. + @param haveCorrectLCL Whether we believe we have the correct LCL. */ void notify( @@ -374,7 +374,7 @@ class RCLConsensus @param closeTimeCorrect Whether consensus agreed on close time @param closeResolution Resolution used to determine consensus close time - @param roundTime Duration of this consensus rorund + @param roundTime Duration of this consensus round @param failedTxs Populate with transactions that we could not successfully apply. @return The newly built ledger diff --git a/src/ripple/app/consensus/RCLCxTx.h b/src/ripple/app/consensus/RCLCxTx.h index afeac5c493..eedeb99620 100644 --- a/src/ripple/app/consensus/RCLCxTx.h +++ b/src/ripple/app/consensus/RCLCxTx.h @@ -115,7 +115,7 @@ public: assert(map_); } - /** Constructor from a previosly created MutableTxSet + /** Constructor from a previously created MutableTxSet @param m MutableTxSet that will become fixed */ @@ -142,8 +142,8 @@ public: @note Since find may not succeed, this returns a `std::shared_ptr` rather than a Tx, which cannot refer to a missing transaction. The generic consensus - code use the shared_ptr semantics to know whether the find - was succesfully and properly creates a Tx as needed. + code uses the shared_ptr semantics to know whether the find + was successful and properly creates a Tx as needed. */ std::shared_ptr const& find(Tx::ID const& entry) const diff --git a/src/ripple/consensus/Consensus.h b/src/ripple/consensus/Consensus.h index 92bce2f4f0..ad53123c26 100644 --- a/src/ripple/consensus/Consensus.h +++ b/src/ripple/consensus/Consensus.h @@ -180,7 +180,7 @@ checkConsensus( using ID = ...; using Seq = ...; - // Unique identifier of ledgerr + // Unique identifier of ledger ID const id() const; Seq seq() const; auto closeTimeResolution() const; diff --git a/src/ripple/consensus/ConsensusParms.h b/src/ripple/consensus/ConsensusParms.h index f456426e82..6e2d88f92b 100644 --- a/src/ripple/consensus/ConsensusParms.h +++ b/src/ripple/consensus/ConsensusParms.h @@ -69,7 +69,7 @@ struct ConsensusParms //------------------------------------------------------------------------- - // Consensus durations are relative to the internal Consenus clock and use + // Consensus durations are relative to the internal Consensus clock and use // millisecond resolution. //! The percentage threshold above which we can declare consensus. @@ -112,7 +112,7 @@ struct ConsensusParms //------------------------------------------------------------------------------ // Avalanche tuning // As a function of the percent this round's duration is of the prior round, - // we increase the threshold for yes vots to add a tranasaction to our + // we increase the threshold for yes votes to add a transaction to our // position. //! Percentage of nodes on our UNL that must vote yes diff --git a/src/ripple/consensus/DisputedTx.h b/src/ripple/consensus/DisputedTx.h index fdfb49808d..971f2d1327 100644 --- a/src/ripple/consensus/DisputedTx.h +++ b/src/ripple/consensus/DisputedTx.h @@ -32,7 +32,7 @@ namespace ripple { -/** A transaction discovered to be in dispute during conensus. +/** A transaction discovered to be in dispute during consensus. During consensus, a @ref DisputedTx is created when a transaction is discovered to be disputed. The object persists only as long as @@ -174,7 +174,7 @@ DisputedTx::setVote(NodeID_t const& peer, bool votesYes) } } -// Remove a peer's vote on this disputed transasction +// Remove a peer's vote on this disputed transaction template void DisputedTx::unVote(NodeID_t const& peer) diff --git a/src/ripple/consensus/LedgerTiming.h b/src/ripple/consensus/LedgerTiming.h index 87cb0c653d..71c53b996b 100644 --- a/src/ripple/consensus/LedgerTiming.h +++ b/src/ripple/consensus/LedgerTiming.h @@ -118,7 +118,7 @@ getNextLedgerTimeResolution( /** Calculates the close time for a ledger, given a close time resolution. - @param closeTime The time to be rouned. + @param closeTime The time to be rounded @param closeResolution The resolution @return @b closeTime rounded to the nearest multiple of @b closeResolution. Rounds up if @b closeTime is midway between multiples of @b closeResolution.