diff --git a/src/addrman.h b/src/addrman.h index 4d44c943ac..67dc7604a4 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -172,7 +172,7 @@ public: /** * Returns an information-location pair for all addresses in the selected addrman table. * If an address appears multiple times in the new table, an information-location pair - * is returned for each occurence. Addresses only ever appear once in the tried table. + * is returned for each occurrence. Addresses only ever appear once in the tried table. * * @param[in] from_tried Selects which table to return entries from. * diff --git a/src/net_processing.cpp b/src/net_processing.cpp index f1944bc0e5..f59fa62f34 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -3644,7 +3644,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type, return; } - // Log succesful connections unconditionally for outbound, but not for inbound as those + // Log successful connections unconditionally for outbound, but not for inbound as those // can be triggered by an attacker at high rate. if (!pfrom.IsInboundConn() || LogAcceptCategory(BCLog::NET, BCLog::Level::Debug)) { const auto mapped_as{m_connman.GetMappedAS(pfrom.addr)}; diff --git a/src/policy/policy.h b/src/policy/policy.h index ecab8a728a..08460e366a 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -102,7 +102,7 @@ static constexpr unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS{SCRIPT_VERIFY_P2SH | * Standard script verification flags that standard transactions will comply * with. However we do not ban/disconnect nodes that forward txs violating * the additional (non-mandatory) rules here, to improve forwards and - * backwards compatability. + * backwards compatibility. */ static constexpr unsigned int STANDARD_SCRIPT_VERIFY_FLAGS{MANDATORY_SCRIPT_VERIFY_FLAGS | SCRIPT_VERIFY_STRICTENC | diff --git a/src/psbt.cpp b/src/psbt.cpp index eb6e33d7ac..660f13d016 100644 --- a/src/psbt.cpp +++ b/src/psbt.cpp @@ -614,7 +614,7 @@ bool PSBTOutput::Merge(const PSBTOutput& output) if (!m_asset_surjection_proof.empty() && !output.m_asset_surjection_proof.empty() && (m_asset_surjection_proof != output.m_asset_surjection_proof)) return false; } - // If output IsFullyBlinded and this is not, copy the blinding data and remove the explicits + // If output IsFullyBlinded and this is not, copy the blinding data if (IsBlinded() && !IsFullyBlinded() && output.IsFullyBlinded()) { m_value_commitment = output.m_value_commitment; m_asset_commitment = output.m_asset_commitment; diff --git a/src/rpc/util.h b/src/rpc/util.h index a61d70b64c..1a50b62862 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -411,7 +411,7 @@ public: * RPC method implementations. The helper internally checks whether the * user-passed argument isNull() and parses (from JSON) and returns the * user-passed argument, or the default value derived from the RPCArg - * documention, or a falsy value if no default was given. + * documentation, or a falsy value if no default was given. * * Use Arg(i) to get the argument or its default value. Otherwise, * use MaybeArg(i) to get the optional argument or a falsy value. diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py index 969d341182..955b7a52d4 100755 --- a/test/functional/feature_assumeutxo.py +++ b/test/functional/feature_assumeutxo.py @@ -73,7 +73,7 @@ class AssumeutxoTest(BitcoinTestFramework): with self.nodes[1].assert_debug_log([log_msg]): assert_raises_rpc_error(-32603, f"Unable to load UTXO snapshot{rpc_details}", self.nodes[1].loadtxoutset, bad_snapshot_path) - self.log.info(" - snapshot file refering to a block that is not in the assumeutxo parameters") + self.log.info(" - snapshot file referring to a block that is not in the assumeutxo parameters") prev_block_hash = self.nodes[0].getblockhash(SNAPSHOT_BASE_HEIGHT - 1) bogus_block_hash = "0" * 64 # Represents any unknown block hash for bad_block_hash in [bogus_block_hash, prev_block_hash]: diff --git a/test/lint/lint-python.py b/test/lint/lint-python.py index 12e967c3f7..72860cb377 100755 --- a/test/lint/lint-python.py +++ b/test/lint/lint-python.py @@ -22,7 +22,7 @@ os.environ["MYPY_CACHE_DIR"] = str(cache_dir) DEPS = ['flake8', 'lief', 'mypy', 'pyzmq'] # All .py files, except those in src/ (to exclude subtrees there) -FLAKE_FILES_ARGS = ['git', 'ls-files', '*.py', ':!:src/*.py', ':!:test/bitcoin_functional/*.py'] # ELEMENTS: exclude this dir +FLAKE_FILES_ARGS = ['git', 'ls-files', '*.py', ':!:src/*.py', ':!:test/bitcoin_functional/*.py', ':!:test/bitcoin_functional/functional/*.py'] # ELEMENTS: exclude this dir # Only .py files in test/functional and contrib/devtools have type annotations # enforced. diff --git a/test/lint/lint-spelling.py b/test/lint/lint-spelling.py index e60cb47d75..206b475123 100755 --- a/test/lint/lint-spelling.py +++ b/test/lint/lint-spelling.py @@ -12,7 +12,7 @@ Note: Will exit successfully regardless of spelling errors. from subprocess import check_output, STDOUT, CalledProcessError IGNORE_WORDS_FILE = 'test/lint/spelling.ignore-words.txt' -FILES_ARGS = ['git', 'ls-files', '--', ":(exclude)build-aux/m4/", ":(exclude)contrib/seeds/*.txt", ":(exclude)depends/", ":(exclude)doc/release-notes/", ":(exclude)src/leveldb/", ":(exclude)src/crc32c/", ":(exclude)src/qt/locale/", ":(exclude)src/qt/*.qrc", ":(exclude)src/secp256k1/", ":(exclude)src/minisketch/", ":(exclude)contrib/guix/patches", ":(exclude)src/simplicity/"] +FILES_ARGS = ['git', 'ls-files', '--', ":(exclude)build-aux/m4/", ":(exclude)contrib/seeds/*.txt", ":(exclude)depends/", ":(exclude)doc/release-notes/", ":(exclude)src/leveldb/", ":(exclude)src/crc32c/", ":(exclude)src/qt/locale/", ":(exclude)src/qt/*.qrc", ":(exclude)src/secp256k1/", ":(exclude)src/minisketch/", ":(exclude)contrib/guix/patches", ":(exclude)src/simplicity/", ":(exclude)test/bitcoin_functional/"] def check_codespell_install(): diff --git a/test/lint/spelling.ignore-words.txt b/test/lint/spelling.ignore-words.txt index 53c2290b47..ade1597960 100644 --- a/test/lint/spelling.ignore-words.txt +++ b/test/lint/spelling.ignore-words.txt @@ -34,3 +34,5 @@ te ligh atack lsat +mis +ake