Fix typos in comments

This commit is contained in:
Elliot Lee
2020-02-20 22:05:24 -08:00
committed by Mike Ellery
parent 20d4a39b63
commit cfe59ee028
7 changed files with 14 additions and 14 deletions

View File

@@ -568,7 +568,7 @@ RCLConsensus::Adaptor::doAccept(
auto txn = std::make_shared<STTx const>(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;

View File

@@ -173,7 +173,7 @@ class RCLConsensus
//---------------------------------------------------------------------
// The following members implement the generic Consensus requirements
// and are marked private to indicate ONLY Consensus<Adaptor> will call
// them (via friendship). Since they are called only from Consenus<Adaptor>
// them (via friendship). Since they are called only from Consensus<Adaptor>
// 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

View File

@@ -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<const SHAMapItem>` 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 SHAMapItem> const&
find(Tx::ID const& entry) const

View File

@@ -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;

View File

@@ -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

View File

@@ -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<Tx_t, NodeID_t>::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 <class Tx_t, class NodeID_t>
void
DisputedTx<Tx_t, NodeID_t>::unVote(NodeID_t const& peer)

View File

@@ -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.