From f3f03be86779610b718a9c25748db7843eaa92ee Mon Sep 17 00:00:00 2001 From: friendlyping Date: Thu, 26 Jun 2025 15:12:45 +0800 Subject: [PATCH] chore: fix some minor issues in the comments Signed-off-by: friendlyping --- src/gridcoin/project.h | 4 ++-- src/gridcoin/voting/poll.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gridcoin/project.h b/src/gridcoin/project.h index f9063383c8..520b24e371 100644 --- a/src/gridcoin/project.h +++ b/src/gridcoin/project.h @@ -188,7 +188,7 @@ class ProjectEntry std::optional HasGDPRControls() const; //! - //! \brief Returns true if project requires an externel adapter for statistics collection. + //! \brief Returns true if project requires an external adapter for statistics collection. //! std::optional RequiresExtAdapter() const; @@ -616,7 +616,7 @@ class AutoGreylist //! v3 superblock history is less than 7, the WAS will be equal to 1.0 unless there are no collected statistics //! on two superblocks during that interval, in which case the WAS will be 0.0. //! - //! \return Fraction of Work Availablity Score. + //! \return Fraction of Work Availability Score. //! Fraction GetWAS() { diff --git a/src/gridcoin/voting/poll.cpp b/src/gridcoin/voting/poll.cpp index 4f1ca0bdb1..6117d037cc 100644 --- a/src/gridcoin/voting/poll.cpp +++ b/src/gridcoin/voting/poll.cpp @@ -231,7 +231,7 @@ Fraction Poll::ResolveMagnitudeWeightFactor(CBlockIndex *index) const // Find the current protocol entry value for Magnitude Weight Factor, if it exists. ProtocolEntryOption protocol_entry = GetProtocolRegistry().TryLastBeforeTimestamp("magnitudeweightfactor", m_timestamp); - // If their is an entry prior or equal in timestemp to the start of the poll and it is active then set the magnitude weight + // If their is an entry prior or equal in timestamp to the start of the poll and it is active then set the magnitude weight // factor to that value. If the last entry is not active (i.e. deleted), then leave at the default. if (protocol_entry != nullptr && protocol_entry->m_status == ProtocolEntryStatus::ACTIVE) { magnitude_weight_factor = Fraction().FromString(protocol_entry->m_value);