From 2c327aa325871c18f3b84685b8d1843d49167ca4 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 13 May 2026 21:20:05 +0200 Subject: [PATCH] fix spelling in comments and docs --- CMakeLists.txt | 2 +- CMakeLists_IOS.txt | 6 +++--- contrib/epee/include/byte_stream.h | 8 ++++---- contrib/epee/include/net/connection_basic.hpp | 4 ++-- contrib/epee/include/net/http_protocol_handler.inl | 4 ++-- contrib/epee/include/net/http_server_impl_base.h | 2 +- contrib/epee/include/net/levin_base.h | 2 +- contrib/epee/include/net/net_ssl.h | 2 +- contrib/epee/include/net/net_utils_base.h | 2 +- .../epee/include/net/network_throttle-detail.hpp | 4 ++-- contrib/epee/include/net/network_throttle.hpp | 4 ++-- contrib/epee/include/serialization/wire/field.h | 2 +- contrib/epee/src/network_throttle-detail.cpp | 4 ++-- docs/ANONYMITY_NETWORKS.md | 4 ++-- docs/PORTABLE_STORAGE.md | 2 +- external/easylogging++/easylogging++.h | 2 +- src/blockchain_db/blockchain_db.h | 12 ++++++------ .../blockchain-stats-readme.md | 2 +- src/common/expect.h | 2 +- src/common/util.h | 4 ++-- src/common/va_args.h | 2 +- src/common/varint.h | 4 ++-- src/crypto/jh.c | 2 +- src/crypto/skein_port.h | 2 +- src/cryptonote_basic/cryptonote_basic_impl.h | 4 ++-- src/cryptonote_basic/miner.cpp | 2 +- src/cryptonote_core/blockchain.cpp | 8 ++++---- src/cryptonote_core/blockchain.h | 6 +++--- src/cryptonote_core/cryptonote_core.h | 4 ++-- src/cryptonote_core/tx_pool.cpp | 4 ++-- src/cryptonote_core/tx_verification_utils.cpp | 4 ++-- src/cryptonote_protocol/levin_notify.h | 2 +- src/daemonizer/posix_fork.cpp | 2 +- src/device/device.hpp | 2 +- src/device_trezor/device_trezor_base.hpp | 2 +- .../trezor/protob/messages-management.proto | 2 +- src/lmdb/util.h | 2 +- src/mnemonics/electrum-words.cpp | 2 +- src/multisig/multisig_account.h | 2 +- src/net/i2p_address.cpp | 2 +- src/net/zmq.h | 6 +++--- src/p2p/net_node.h | 2 +- src/p2p/net_node.inl | 2 +- src/p2p/net_peerlist.h | 4 ++-- src/ringct/bulletproofs_plus.cc | 2 +- src/ringct/rctSigs.cpp | 4 ++-- src/ringct/rctSigs.h | 2 +- src/rpc/core_rpc_server.cpp | 2 +- src/serialization/binary_archive.h | 2 +- src/wallet/api/wallet.cpp | 10 +++++----- src/wallet/api/wallet2_api.h | 12 ++++++------ src/wallet/message_store.h | 2 +- src/wallet/wallet2.cpp | 14 +++++++------- src/wallet/wallet2.h | 2 +- src/wallet/wallet_args.h | 2 +- src/wallet/wallet_rpc_server.cpp | 2 +- tests/core_tests/rct.cpp | 2 +- tests/functional_tests/multisig.py | 4 ++-- tests/functional_tests/p2p.py | 2 +- tests/unit_tests/verRctNonSemanticsSimple.cpp | 4 ++-- utils/health/README.md | 2 +- 61 files changed, 109 insertions(+), 109 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12a758967..50e60bfc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,7 +150,7 @@ endfunction() option(RELINK_TARGETS "Relink targets, when just a dependant .so changed, but not its header?" OFF) function (monero_set_target_no_relink target) if (RELINK_TARGETS MATCHES OFF) - # Will not relink the target, when just its dependant .so has changed, but not it's interface + # Will not relink the target, when just its dependent .so has changed, but not its interface set_target_properties("${target}" PROPERTIES LINK_DEPENDS_NO_SHARED true) endif() endfunction() diff --git a/CMakeLists_IOS.txt b/CMakeLists_IOS.txt index 477e09ebf..94c45356c 100644 --- a/CMakeLists_IOS.txt +++ b/CMakeLists_IOS.txt @@ -11,11 +11,11 @@ # SIMULATOR - used to build for the Simulator platforms, which have an x86 arch. # # CMAKE_IOS_DEVELOPER_ROOT = automatic(default) or /path/to/platform/Developer folder -# By default this location is automatcially chosen based on the IOS_PLATFORM value above. +# By default this location is automatically chosen based on the IOS_PLATFORM value above. # If set manually, it will override the default location and force the user of a particular Developer Platform # # CMAKE_IOS_SDK_ROOT = automatic(default) or /path/to/platform/Developer/SDKs/SDK folder -# By default this location is automatcially chosen based on the CMAKE_IOS_DEVELOPER_ROOT value. +# By default this location is automatically chosen based on the CMAKE_IOS_DEVELOPER_ROOT value. # In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT path. # If set manually, this will force the use of a specific SDK version @@ -60,7 +60,7 @@ set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ") set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}") set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") -# Hidden visibilty is required for cxx on iOS +# Hidden visibility is required for cxx on iOS set (CMAKE_C_FLAGS_INIT "") set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden") diff --git a/contrib/epee/include/byte_stream.h b/contrib/epee/include/byte_stream.h index 66e6d90fd..c362fea69 100644 --- a/contrib/epee/include/byte_stream.h +++ b/contrib/epee/include/byte_stream.h @@ -153,7 +153,7 @@ namespace epee put_unsafe(ch); } - /*! Copy `ch` to end of stream. Provides rapidjson compatability. + /*! Copy `ch` to end of stream. Provides rapidjson compatibility. \throw std::range_error if exceeding max `size_t` value. \throw std::bad_alloc if allocation fails. */ void Put(const std::uint8_t ch) @@ -194,21 +194,21 @@ namespace epee byte_buffer take_buffer() noexcept; }; - //! Compatability/optimization for rapidjson. + //! Compatibility/optimization for rapidjson. inline void PutReserve(byte_stream& dest, const std::size_t length) { dest.reserve(length); } - //! Compatability/optimization for rapidjson. + //! Compatibility/optimization for rapidjson. inline void PutUnsafe(byte_stream& dest, const std::uint8_t ch) { dest.put_unsafe(ch); } - //! Compability/optimization for rapidjson. + //! Compatibility/optimization for rapidjson. inline void PutN(byte_stream& dest, const std::uint8_t ch, const std::size_t count) { dest.put_n(ch, count); diff --git a/contrib/epee/include/net/connection_basic.hpp b/contrib/epee/include/net/connection_basic.hpp index 7993060de..57d19acef 100644 --- a/contrib/epee/include/net/connection_basic.hpp +++ b/contrib/epee/include/net/connection_basic.hpp @@ -36,7 +36,7 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -/* rfree: place for hanlers for the non-template base, can be used by connection<> template class in abstract_tcp_server2 file */ +/* rfree: place for handlers for the non-template base, can be used by connection<> template class in abstract_tcp_server2 file */ #ifndef INCLUDED_p2p_connection_basic_hpp #define INCLUDED_p2p_connection_basic_hpp @@ -105,7 +105,7 @@ class connection_basic { // not-templated base class for rapid developmet of som std::unique_ptr< connection_basic_pimpl > mI; // my Implementation - // moved here from orginal connecton<> - common member variables that do not depend on template in connection<> + // moved here from original connection<> - common member variables that do not depend on template in connection<> std::atomic m_want_close_connection; std::atomic m_was_shutdown; critical_section m_send_que_lock; diff --git a/contrib/epee/include/net/http_protocol_handler.inl b/contrib/epee/include/net/http_protocol_handler.inl index f682c8bda..f66c3161a 100644 --- a/contrib/epee/include/net/http_protocol_handler.inl +++ b/contrib/epee/include/net/http_protocol_handler.inl @@ -308,7 +308,7 @@ namespace net_utils if (ndel != 0) { //some times it could be that before query line cold be few line breaks - //so we have to be calm without panic with assers + //so we have to be calm without panic with asserts m_newlines += std::string::npos == ndel ? m_cache.size() : ndel; if (m_newlines > HTTP_MAX_STARTING_NEWLINES) { @@ -467,7 +467,7 @@ namespace net_utils m_cache.erase(0, pos); std::string req_command_str = m_query_info.m_full_request_str; - //if we have POST or PUT command, it is very possible tha we will get body + //if we have POST or PUT command, it is very possible that we will get body //but now, we suppose than we have body only in case of we have "ContentLength" if(m_query_info.m_header_info.m_content_length.size()) { diff --git a/contrib/epee/include/net/http_server_impl_base.h b/contrib/epee/include/net/http_server_impl_base.h index 5ee3b4c87..a3173e4e8 100644 --- a/contrib/epee/include/net/http_server_impl_base.h +++ b/contrib/epee/include/net/http_server_impl_base.h @@ -77,7 +77,7 @@ namespace epee m_net_server.get_config_object().m_phandler = static_cast(this); m_net_server.get_config_object().rng = std::move(rng); - //here set folder for hosting reqests + //here set folder for hosting requests m_net_server.get_config_object().m_folder = ""; //set access control allow origins if configured diff --git a/contrib/epee/include/net/levin_base.h b/contrib/epee/include/net/levin_base.h index 9dc1035af..404c06538 100644 --- a/contrib/epee/include/net/levin_base.h +++ b/contrib/epee/include/net/levin_base.h @@ -160,7 +160,7 @@ constexpr const std::chrono::milliseconds LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED{0} byte_stream buffer; }; - //! \return Intialized levin header. + //! \return Initialized levin header. bucket_head2 make_header(uint32_t command, uint64_t msg_size, uint32_t flags, bool expect_response) noexcept; /*! Generate a dummy levin message. diff --git a/contrib/epee/include/net/net_ssl.h b/contrib/epee/include/net/net_ssl.h index 5fd14b65d..1f0a43401 100644 --- a/contrib/epee/include/net/net_ssl.h +++ b/contrib/epee/include/net/net_ssl.h @@ -71,7 +71,7 @@ namespace net_utils /*! \note `verification != disabled && support == disabled` is currently - "allowed" via public interface but obviously invalid configuation. + "allowed" via public interface but obviously invalid configuration. */ class ssl_options_t { diff --git a/contrib/epee/include/net/net_utils_base.h b/contrib/epee/include/net/net_utils_base.h index 88b50f602..c52791344 100644 --- a/contrib/epee/include/net/net_utils_base.h +++ b/contrib/epee/include/net/net_utils_base.h @@ -277,7 +277,7 @@ namespace net_utils template Type& as_mutable() const { - // types `implmentation` and `implementation` are unique + // types `implementation` and `implementation` are unique using Type_ = typename std::remove_const::type; network_address::interface* const self_ = self.get(); // avoid clang warning in typeid if (!self_ || typeid(implementation) != typeid(*self_)) diff --git a/contrib/epee/include/net/network_throttle-detail.hpp b/contrib/epee/include/net/network_throttle-detail.hpp index 48af0d95b..91b0f6d66 100644 --- a/contrib/epee/include/net/network_throttle-detail.hpp +++ b/contrib/epee/include/net/network_throttle-detail.hpp @@ -1,6 +1,6 @@ /// @file /// @author rfree (current maintainer in monero.cc project) -/// @brief implementaion for throttling of connection (count and rate-limit speed etc) +/// @brief implementation for throttling of connection (count and rate-limit speed etc) // Copyright (c) 2014-2024, The Monero Project // @@ -60,7 +60,7 @@ class network_throttle : public i_network_throttle { const size_t m_window_size; // the number of samples to average over network_time_seconds m_slot_size; // the size of one slot. TODO: now hardcoded for 1 second e.g. in time_to_slot() - // TODO for big window size, for performance better the substract on change of m_last_sample_time instead of recalculating average of eg >100 elements + // TODO for big window size, for performance better the subtract on change of m_last_sample_time instead of recalculating average of eg >100 elements boost::circular_buffer< packet_info > m_history; // the history of bw usage network_time_seconds m_last_sample_time; // time of last history[0] - so we know when to rotate the buffer diff --git a/contrib/epee/include/net/network_throttle.hpp b/contrib/epee/include/net/network_throttle.hpp index 46361e5fa..444a72f36 100644 --- a/contrib/epee/include/net/network_throttle.hpp +++ b/contrib/epee/include/net/network_throttle.hpp @@ -92,7 +92,7 @@ typedef calculate_times_struct calculate_times_struct; /*** -@brief Access to simple throttles, with singlton to access global network limits +@brief Access to simple throttles, with singleton to access global network limits */ class network_throttle_manager { // provides global (singleton) in/inreq/out throttle access @@ -134,7 +134,7 @@ class i_network_throttle { // time calculations: virtual void calculate_times(size_t packet_size, calculate_times_struct &cts, bool dbg, double force_window) const =0; // assuming sending new package (or 0), calculate: - // Average, Window, Delay, Recommended data size ; also gets dbg=debug flag, and forced widnow size if >0 or -1 for not forcing window size + // Average, Window, Delay, Recommended data size ; also gets dbg=debug flag, and forced window size if >0 or -1 for not forcing window size // Average speed, Window size, recommended Delay to sleep now, Recommended size of data to send now diff --git a/contrib/epee/include/serialization/wire/field.h b/contrib/epee/include/serialization/wire/field.h index 9c7646ec3..89e7fa80f 100644 --- a/contrib/epee/include/serialization/wire/field.h +++ b/contrib/epee/include/serialization/wire/field.h @@ -58,7 +58,7 @@ namespace wire automatically be converted to an optional field iff `value_type` has an `empty()` method that returns `true`. The old output engine omitted fields when an array was empty, and the standard input macro would ignore the - `false` return for the missing field. For compability reasons, the + `false` return for the missing field. For compatibility reasons, the input/output engine here matches that behavior. See `wrapper/array.h` to enforce a required field even when the array is empty or specialize the `is_optional_on_empty` trait. Only new fields should use this behavior. diff --git a/contrib/epee/src/network_throttle-detail.cpp b/contrib/epee/src/network_throttle-detail.cpp index 1cf001ffa..318888d29 100644 --- a/contrib/epee/src/network_throttle-detail.cpp +++ b/contrib/epee/src/network_throttle-detail.cpp @@ -1,6 +1,6 @@ /// @file /// @author rfree (current maintainer in monero.cc project) -/// @brief implementaion for throttling of connection (count and rate-limit speed etc) +/// @brief implementation for throttling of connection (count and rate-limit speed etc) // Copyright (c) 2014-2024, The Monero Project // @@ -64,7 +64,7 @@ // ################################################################################################ // ################################################################################################ -// the "header part". Not separeted out for .hpp because point of this modification is +// the "header part". Not separated out for .hpp because point of this modification is // to rebuild just 1 translation unit while working on this code. // (But maybe common parts will be separated out later though - if needed) // ################################################################################################ diff --git a/docs/ANONYMITY_NETWORKS.md b/docs/ANONYMITY_NETWORKS.md index 78f5e782c..7d03f249e 100644 --- a/docs/ANONYMITY_NETWORKS.md +++ b/docs/ANONYMITY_NETWORKS.md @@ -56,7 +56,7 @@ You can also combine `--proxy` with `--tx-proxy` (see below). ### Hidden Services -Hidden services - onion and I2P domains - are available to use for transation broadcasts. +Hidden services - onion and I2P domains - are available to use for transaction broadcasts. You may use the below options with or without `--proxy`. #### Outbound Connections @@ -318,7 +318,7 @@ persistent public key identity - the creation of a new circuit will generate a new public key identity. The lock time on a change address is ~20 minutes, so `monerod` will have rotated its selected outgoing connections several times in most cases. However, the number of outgoing connections is typically a small -fixed number, so there is a decent probability of re-use with the same public +fixed number, so there is a decent probability of reuse with the same public key identity. @secparam ([Twitter](https://twitter.com/secparam/status/1153411968147042304)) recommended changing circuits (Tor) as an additional diff --git a/docs/PORTABLE_STORAGE.md b/docs/PORTABLE_STORAGE.md index 175e73134..c3390b98e 100644 --- a/docs/PORTABLE_STORAGE.md +++ b/docs/PORTABLE_STORAGE.md @@ -97,7 +97,7 @@ Which is followed by the section's name-value [entries](#Entry) sequentially: | Name | section key | | Type | byte | | Count1 | varint | -| Value(s) | (type dependant data) | +| Value(s) | (type-dependent data) | 1 Note, this is only present if the entry type has the array flag (see below). diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h index dfc71a9b7..e3814438c 100644 --- a/external/easylogging++/easylogging++.h +++ b/external/easylogging++/easylogging++.h @@ -1820,7 +1820,7 @@ class Configurations : public base::utils::RegistryWithPred