From 346a51ca0ace82169b56e4a9376160027664ef46 Mon Sep 17 00:00:00 2001 From: Spencer Lepine <60903378+spencerlepine@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:07:17 -0700 Subject: [PATCH] fix: minor typo corrections --- src/rpc/client.cpp | 2 +- src/test/coins_tests.cpp | 2 +- src/test/txvalidationcache_tests.cpp | 2 +- src/tinyformat.h | 2 +- src/torcontrol.cpp | 2 +- src/utiltime.h | 2 +- src/validation.cpp | 2 +- src/validationinterface.h | 2 +- src/wallet/wallet.cpp | 2 +- src/wallet/wallet.h | 4 ++-- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index cbfa1cfae..feca3d8fd 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -25,7 +25,7 @@ public: }; /** - * Specifiy a (method, idx, name) here if the argument is a non-string RPC + * Specify a (method, idx, name) here if the argument is a non-string RPC * argument and needs to be converted from JSON. * * @note Parameter indexes start from 0. diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index b25c7ccc5..42f133b74 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -237,7 +237,7 @@ TxData &FindRandomFrom(const std::set &txidset) { // except the emphasis is on testing the functionality of UpdateCoins // random txs are created and UpdateCoins is used to update the cache stack // In particular it is tested that spending a duplicate coinbase tx -// has the expected effect (the other duplicate is overwitten at all cache levels) +// has the expected effect (the other duplicate is overwritten at all cache levels) BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) { bool spent_a_duplicate_coinbase = false; diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp index 054e23763..fbf79fc3c 100644 --- a/src/test/txvalidationcache_tests.cpp +++ b/src/test/txvalidationcache_tests.cpp @@ -29,7 +29,7 @@ ToMemPool(CMutableTransaction& tx) BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain240Setup) { - // Make sure skipping validation of transctions that were + // Make sure skipping validation of transactions that were // validated going into the memory pool does not allow // double-spends in blocks to pass validation when they should not. diff --git a/src/tinyformat.h b/src/tinyformat.h index 01ef7ccdd..b4993417d 100644 --- a/src/tinyformat.h +++ b/src/tinyformat.h @@ -483,7 +483,7 @@ namespace detail { // Type-opaque holder for an argument to format(), with associated actions on // the type held as explicit function pointers. This allows FormatArg's for -// each argument to be allocated as a homogenous array inside FormatList +// each argument to be allocated as a homogeneous array inside FormatList // whereas a naive implementation based on inheritance does not. class FormatArg { diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp index 82d513375..b7ee29ffd 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -358,7 +358,7 @@ public: TorController(struct event_base* base, const std::string& target); ~TorController(); - /** Get name fo file to store private key in */ + /** Get name for file to store private key in */ std::string GetPrivateKeyFile(); /** Reconnect, after getting disconnected */ diff --git a/src/utiltime.h b/src/utiltime.h index 329de7190..3fe1781a4 100644 --- a/src/utiltime.h +++ b/src/utiltime.h @@ -12,7 +12,7 @@ /** * GetTimeMicros() and GetTimeMillis() both return the system time, but in - * different units. GetTime() returns the sytem time in seconds, but also + * different units. GetTime() returns the system time in seconds, but also * supports mocktime, where the time can be specified by the user, eg for * testing (eg with the setmocktime rpc, or -mocktime argument). * diff --git a/src/validation.cpp b/src/validation.cpp index 7a08f0b45..d1c238856 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2583,7 +2583,7 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams, } // MemPoolConflictRemovalTracker destroyed and conflict evictions are notified - // Transactions in the connnected block are notified + // Transactions in the connected block are notified for (const auto& pair : connectTrace.blocksConnected) { assert(pair.second); const CBlock& block = *(pair.second); diff --git a/src/validationinterface.h b/src/validationinterface.h index c8f7887be..e774ac114 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -49,7 +49,7 @@ protected: struct CMainSignals { /** Notifies listeners of updated block chain tip */ boost::signals2::signal UpdatedBlockTip; - /** A posInBlock value for SyncTransaction calls for tranactions not + /** A posInBlock value for SyncTransaction calls for transactions not * included in connected blocks such as transactions removed from mempool, * accepted to mempool or appearing in disconnected blocks.*/ static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index b3542ea88..c4f169ffa 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1038,7 +1038,7 @@ bool CWallet::LoadToWallet(const CWalletTx& wtxIn) * TODO: One exception to this is that the abandoned state is cleared under the * assumption that any further notification of a transaction that was considered * abandoned is an indication that it is not safe to be considered abandoned. - * Abandoned state should probably be more carefuly tracked via different + * Abandoned state should probably be more carefully tracked via different * posInBlock signals or by checking mempool presence when necessary. */ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlockIndex* pIndex, int posInBlock, bool fUpdate) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index fc869d397..560f3cf15 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -813,11 +813,11 @@ public: */ static CAmount GetMinimumFee(const CMutableTransaction& tx, unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool& pool, CAmount targetFee); /** - * Dogecoin: Get a fee targetting a specific transaction speed. + * Dogecoin: Get a fee targeting a specific transaction speed. */ CAmount GetDogecoinPriorityFee(const CMutableTransaction& tx, unsigned int nTxBytes, FeeRatePreset nSpeed); /** - * Dogecoin: Get a fee targetting a specific transaction speed. + * Dogecoin: Get a fee targeting a specific transaction speed. */ static CAmount GetDogecoinPriorityFee(const CMutableTransaction& tx, unsigned int nTxBytes, FeeRatePreset nSpeed, CAmount targetFee); /**