From d0e82310b1ad2d53aaf36f02769d5df6e672cf7e Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Sat, 3 Feb 2024 17:33:46 -0500 Subject: [PATCH] Linter spellcheck corrections --- src/gridcoin/beacon.cpp | 2 +- src/gridcoin/contract/registry_db.h | 2 +- src/gridcoin/md5.c | 6 +++--- src/miner.cpp | 2 +- src/random.h | 2 +- src/test/xxd/xxd.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gridcoin/beacon.cpp b/src/gridcoin/beacon.cpp index c7eb77127d..e529fdff07 100644 --- a/src/gridcoin/beacon.cpp +++ b/src/gridcoin/beacon.cpp @@ -1313,7 +1313,7 @@ template<> void BeaconRegistry::BeaconDB::HandleCurrentHistoricalEntries(GRC::Be } if (entry.m_status == BeaconStatusForStorage::ACTIVE) { - // Note that in the orginal activation, all the activations happen for a superblock, and then the expired_entry set is + // Note that in the original activation, all the activations happen for a superblock, and then the expired_entry set is // cleared and then new expired entries recorded from the just committed SB. This method operates at the record level, but // clearing the expired_entries for each ACTIVE record posting will achieve the same effect, because the entries are ordered // the proper way. It is a little bit of undesired work, but it is not worth the complexity of feeding the boundaries diff --git a/src/gridcoin/contract/registry_db.h b/src/gridcoin/contract/registry_db.h index 804c9a6f8a..2f83a7ee17 100644 --- a/src/gridcoin/contract/registry_db.h +++ b/src/gridcoin/contract/registry_db.h @@ -230,7 +230,7 @@ class RegistryDB } //! - //! \brief Handles the passivation of previous historical entries that have been superceded by current entries. + //! \brief Handles the passivation of previous historical entries that have been superseded by current entries. //! //! \param historical_entry_ptr. Shared smart pointer to current historical entry already inserted into historical map. //! diff --git a/src/gridcoin/md5.c b/src/gridcoin/md5.c index 18a0923825..da1d3bb476 100644 --- a/src/gridcoin/md5.c +++ b/src/gridcoin/md5.c @@ -6,7 +6,7 @@ * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as - * the following conditions are aheared to. The following conditions + * the following conditions are adhered to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms @@ -31,7 +31,7 @@ * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@cryptsoft.com)" - * The word 'cryptographic' can be left out if the rouines from the library + * The word 'cryptographic' can be left out if the routines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: @@ -49,7 +49,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * The licence and distribution terms for any publically available version or + * The licence and distribution terms for any publicly available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ diff --git a/src/miner.cpp b/src/miner.cpp index 1c45764078..c95c3ffe02 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -939,7 +939,7 @@ void SplitCoinStakeOutput(CBlock &blocknew, int64_t &nReward, bool &fEnableStake CScript SideStakeScriptPubKey; GRC::Allocation SumAllocation; - // Lambda for sidestake allocation. This iterates throught the provided sidestake vector until either all elements processed, + // Lambda for sidestake allocation. This iterates through the provided sidestake vector until either all elements processed, // the maximum number of sidestake outputs is reached via the provided output_limit, or accumulated allocation will exceed 100%. const auto allocate_sidestakes = [&](SideStakeAlloc sidestakes, unsigned int output_limit) { for (auto iterSideStake = sidestakes.begin(); diff --git a/src/random.h b/src/random.h index 821927af92..066ad1e68f 100644 --- a/src/random.h +++ b/src/random.h @@ -100,7 +100,7 @@ constexpr auto GetRandMillis = GetRandomDuration; * is memoryless and should be used for repeated network events (e.g. sending a * certain type of message) to minimize leaking information to observers. * - * The probability of an event occuring before time x is 1 - e^-(x/a) where a + * The probability of an event occurring before time x is 1 - e^-(x/a) where a * is the average interval between events. * */ std::chrono::microseconds GetExponentialRand(std::chrono::microseconds now, std::chrono::seconds average_interval); diff --git a/src/test/xxd/xxd.c b/src/test/xxd/xxd.c index e2fc9dff6a..ae25feed2b 100644 --- a/src/test/xxd/xxd.c +++ b/src/test/xxd/xxd.c @@ -36,7 +36,7 @@ * 7.06.96 -i printed 'int' instead of 'char'. *blush* * added Bram's OS2 ifdefs... * 18.07.96 gcc -Wall @ SunOS4 is now silent. - * Added osver for MSDOS/DJGPP/WIN32. + * Added osver for MS-DOS/DJGPP/WIN32. * 29.08.96 Added size_t to strncmp() for Amiga. * 24.03.97 Windows NT support (Phil Hanna). Clean exit for Amiga WB (Bram) * 02.04.97 Added -E option, to have EBCDIC translation instead of ASCII