From b8829de639dda80b36c64028de4d5593204e4616 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/test/coins_tests.cpp | 2 +- src/tinyformat.h | 2 +- src/torcontrol.cpp | 2 +- src/validation.cpp | 2 +- src/validationinterface.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index b25c7ccc51c..42f133b7478 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/tinyformat.h b/src/tinyformat.h index 01ef7ccdd83..b4993417da7 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 82d5133755e..b7ee29ffd5b 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -358,7 +358,7 @@ class TorController 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/validation.cpp b/src/validation.cpp index 7a08f0b4557..d1c2388562a 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 c8f7887be36..e774ac114b0 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -49,7 +49,7 @@ class CValidationInterface { 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;