Skip to content

Commit 43de4d3

Browse files
committed
doc: fix typos
As found by lint-spelling.py using codespell 2.2.6.
1 parent 0387ca0 commit 43de4d3

22 files changed

+25
-24
lines changed

ci/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ in order.
5252
### Cache
5353

5454
In order to avoid rebuilding all dependencies for each build, the binaries are
55-
cached and re-used when possible. Changes in the dependency-generator will
55+
cached and reused when possible. Changes in the dependency-generator will
5656
trigger cache-invalidation and rebuilds as necessary.

depends/description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ etc), and as well as a hash of the same data for each recursive dependency. If
2828
any portion of a package's build recipe changes, it will be rebuilt as well as
2929
any other package that depends on it. If any of the main makefiles (Makefile,
3030
funcs.mk, etc) are changed, all packages will be rebuilt. After building, the
31-
results are cached into a tarball that can be re-used and distributed.
31+
results are cached into a tarball that can be reused and distributed.
3232

3333
### Package build results are (relatively) deterministic.
3434

src/addrman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class AddrMan
172172
/**
173173
* Returns an information-location pair for all addresses in the selected addrman table.
174174
* If an address appears multiple times in the new table, an information-location pair
175-
* is returned for each occurence. Addresses only ever appear once in the tried table.
175+
* is returned for each occurrence. Addresses only ever appear once in the tried table.
176176
*
177177
* @param[in] from_tried Selects which table to return entries from.
178178
*

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ void PeerManagerImpl::ProcessGetData(CNode& pfrom, Peer& peer, const std::atomic
24472447
// of transactions relevant to them, without having to download the
24482448
// entire memory pool.
24492449
// Also, other nodes can use these messages to automatically request a
2450-
// transaction from some other peer that annnounced it, and stop
2450+
// transaction from some other peer that announced it, and stop
24512451
// waiting for us to respond.
24522452
// In normal operation, we often send NOTFOUND messages for parents of
24532453
// transactions that we relay; if a peer is missing a parent, they may
@@ -3592,7 +3592,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
35923592
return;
35933593
}
35943594

3595-
// Log succesful connections unconditionally for outbound, but not for inbound as those
3595+
// Log successful connections unconditionally for outbound, but not for inbound as those
35963596
// can be triggered by an attacker at high rate.
35973597
if (!pfrom.IsInboundConn() || LogAcceptCategory(BCLog::NET, BCLog::Level::Debug)) {
35983598
const auto mapped_as{m_connman.GetMappedAS(pfrom.addr)};

src/policy/policy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static constexpr unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS{SCRIPT_VERIFY_P2SH |
9898
* Standard script verification flags that standard transactions will comply
9999
* with. However we do not ban/disconnect nodes that forward txs violating
100100
* the additional (non-mandatory) rules here, to improve forwards and
101-
* backwards compatability.
101+
* backwards compatibility.
102102
*/
103103
static constexpr unsigned int STANDARD_SCRIPT_VERIFY_FLAGS{MANDATORY_SCRIPT_VERIFY_FLAGS |
104104
SCRIPT_VERIFY_STRICTENC |

src/qt/transactiontablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class TransactionTablePriv
219219

220220
// If a status update is needed (blocks came in since last check),
221221
// try to update the status of this transaction from the wallet.
222-
// Otherwise, simply re-use the cached status.
222+
// Otherwise, simply reuse the cached status.
223223
interfaces::WalletTxStatus wtx;
224224
int numBlocks;
225225
int64_t block_time;

src/rpc/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static inline JSONRPCRequest transformNamedArguments(const JSONRPCRequest& in, c
409409
}
410410
// Process expected parameters. If any parameters were left unspecified in
411411
// the request before a parameter that was specified, null values need to be
412-
// inserted at the unspecifed parameter positions, and the "hole" variable
412+
// inserted at the unspecified parameter positions, and the "hole" variable
413413
// below tracks the number of null values that need to be inserted.
414414
// The "initial_hole_size" variable stores the size of the initial hole,
415415
// i.e. how many initial positional arguments were left unspecified. This is

src/rpc/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ UniValue RPCResult::MatchesType(const UniValue& result) const
10891089
if (UniValue::VARR == result.getType()) {
10901090
UniValue errors(UniValue::VOBJ);
10911091
for (size_t i{0}; i < result.get_array().size(); ++i) {
1092-
// If there are more results than documented, re-use the last doc_inner.
1092+
// If there are more results than documented, reuse the last doc_inner.
10931093
const RPCResult& doc_inner{m_inner.at(std::min(m_inner.size() - 1, i))};
10941094
UniValue match{doc_inner.MatchesType(result.get_array()[i])};
10951095
if (!match.isTrue()) errors.pushKV(strprintf("%d", i), match);

src/rpc/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class RPCHelpMan
407407
* RPC method implementations. The helper internally checks whether the
408408
* user-passed argument isNull() and parses (from JSON) and returns the
409409
* user-passed argument, or the default value derived from the RPCArg
410-
* documention, or a falsy value if no default was given.
410+
* documentation, or a falsy value if no default was given.
411411
*
412412
* Use Arg<Type>(i) to get the argument or its default value. Otherwise,
413413
* use MaybeArg<Type>(i) to get the optional argument or a falsy value.

src/test/fuzz/FuzzedDataProvider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ FuzzedDataProvider::ConsumeRandomLengthString(size_t max_length) {
158158
// picking its contents.
159159
std::string result;
160160

161-
// Reserve the anticipated capaticity to prevent several reallocations.
161+
// Reserve the anticipated capacity to prevent several reallocations.
162162
result.reserve(std::min(max_length, remaining_bytes_));
163163
for (size_t i = 0; i < max_length && remaining_bytes_ != 0; ++i) {
164164
char next = ConvertUnsignedToSigned<char>(data_ptr_[0]);

src/test/orphanage_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
112112
}
113113
SignatureData empty;
114114
BOOST_CHECK(SignSignature(keystore, *txPrev, tx, 0, SIGHASH_ALL, empty));
115-
// Re-use same signature for other inputs
115+
// Reuse same signature for other inputs
116116
// (they don't have to be valid for this test)
117117
for (unsigned int j = 1; j < tx.vin.size(); j++)
118118
tx.vin[j].scriptSig = tx.vin[0].scriptSig;

src/test/script_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ BOOST_AUTO_TEST_CASE(script_CHECKMULTISIG23)
11121112
BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err));
11131113

11141114
keys.clear();
1115-
keys.push_back(key2); keys.push_back(key2); // Can't re-use sig
1115+
keys.push_back(key2); keys.push_back(key2); // Can't reuse sig
11161116
CScript badsig1 = sign_multisig(scriptPubKey23, keys, CTransaction(txTo23));
11171117
BOOST_CHECK(!VerifyScript(badsig1, scriptPubKey23, nullptr, gFlags, MutableTransactionSignatureChecker(&txTo23, 0, txFrom23.vout[0].nValue, MissingDataBehavior::ASSERT_FAIL), &err));
11181118
BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_EVAL_FALSE, ScriptErrorString(err));

src/test/versionbits_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ BOOST_AUTO_TEST_CASE(versionbits_computeblockversion)
424424
uint32_t chain_all_vbits{0};
425425
for (int i = 0; i < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++i) {
426426
const auto dep = static_cast<Consensus::DeploymentPos>(i);
427-
// Check that no bits are re-used (within the same chain). This is
427+
// Check that no bits are reused (within the same chain). This is
428428
// disallowed because the transition to FAILED (on timeout) does
429429
// not take precedence over STARTED/LOCKED_IN. So all softforks on
430430
// the same bit might overlap, even when non-overlapping start-end

src/torcontrol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ std::map<std::string,std::string> ParseTorReplyMapping(const std::string &s)
251251
/**
252252
* Unescape value. Per https://spec.torproject.org/control-spec section 2.1.1:
253253
*
254-
* For future-proofing, controller implementors MAY use the following
254+
* For future-proofing, controller implementers MAY use the following
255255
* rules to be compatible with buggy Tor implementations and with
256256
* future ones that implement the spec as intended:
257257
*

src/txmempool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ class CTxMemPool
477477
void removeRecursive(const CTransaction& tx, MemPoolRemovalReason reason) EXCLUSIVE_LOCKS_REQUIRED(cs);
478478
/** After reorg, filter the entries that would no longer be valid in the next block, and update
479479
* the entries' cached LockPoints if needed. The mempool does not have any knowledge of
480-
* consensus rules. It just appplies the callable function and removes the ones for which it
480+
* consensus rules. It just applies the callable function and removes the ones for which it
481481
* returns true.
482482
* @param[in] filter_final_and_mature Predicate that checks the relevant validation rules
483483
* and updates an entry's LockPoints.

src/wallet/feebumper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Result CreateRateBumpTransaction(CWallet& wallet, const uint256& txid, const CCo
170170
return Result::INVALID_PARAMETER;
171171
}
172172

173-
// We are going to modify coin control later, copy to re-use
173+
// We are going to modify coin control later, copy to reuse
174174
CCoinControl new_coin_control(coin_control);
175175

176176
LOCK(wallet.cs_wallet);

src/wallet/spend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal(
12571257
}
12581258

12591259
// Before we return success, we assume any change key will be used to prevent
1260-
// accidental re-use.
1260+
// accidental reuse.
12611261
reservedest.KeepDestination();
12621262

12631263
wallet.WalletLogPrintf("Fee Calculation: Fee:%d Bytes:%u Tgt:%d (requested %d) Reason:\"%s\" Decay %.5f: Estimation: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out) Fail: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out)\n",
@@ -1299,7 +1299,7 @@ util::Result<CreatedTransactionResult> CreateTransaction(
12991299
CCoinControl tmp_cc = coin_control;
13001300
tmp_cc.m_avoid_partial_spends = true;
13011301

1302-
// Re-use the change destination from the first creation attempt to avoid skipping BIP44 indexes
1302+
// Reuse the change destination from the first creation attempt to avoid skipping BIP44 indexes
13031303
const int ungrouped_change_pos = txr_ungrouped.change_pos;
13041304
if (ungrouped_change_pos != -1) {
13051305
ExtractDestination(txr_ungrouped.tx->vout[ungrouped_change_pos].scriptPubKey, tmp_cc.destChange);

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static const std::map<std::string,WalletFlags> WALLET_FLAG_MAP{
178178
* Instantiating a ReserveDestination does not reserve an address. To do so,
179179
* GetReservedDestination() needs to be called on the object. Once an address has been
180180
* reserved, call KeepDestination() on the ReserveDestination object to make sure it is not
181-
* returned. Call ReturnDestination() to return the address so it can be re-used (for
181+
* returned. Call ReturnDestination() to return the address so it can be reused (for
182182
* example, if the address was used in a new transaction
183183
* and that transaction was not completed and needed to be aborted).
184184
*

test/functional/feature_assumeutxo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def expected_error(log_msg="", rpc_details=""):
7575
with self.nodes[1].assert_debug_log([log_msg]):
7676
assert_raises_rpc_error(-32603, f"Unable to load UTXO snapshot{rpc_details}", self.nodes[1].loadtxoutset, bad_snapshot_path)
7777

78-
self.log.info(" - snapshot file refering to a block that is not in the assumeutxo parameters")
78+
self.log.info(" - snapshot file referring to a block that is not in the assumeutxo parameters")
7979
prev_block_hash = self.nodes[0].getblockhash(SNAPSHOT_BASE_HEIGHT - 1)
8080
bogus_block_hash = "0" * 64 # Represents any unknown block hash
8181
for bad_block_hash in [bogus_block_hash, prev_block_hash]:
@@ -112,7 +112,7 @@ def expected_error(log_msg="", rpc_details=""):
112112
def test_invalid_chainstate_scenarios(self):
113113
self.log.info("Test different scenarios of invalid snapshot chainstate in datadir")
114114

115-
self.log.info(" - snapshot chainstate refering to a block that is not in the assumeutxo parameters")
115+
self.log.info(" - snapshot chainstate referring to a block that is not in the assumeutxo parameters")
116116
self.stop_node(0)
117117
chainstate_snapshot_path = self.nodes[0].chain_path / "chainstate_snapshot"
118118
chainstate_snapshot_path.mkdir()

test/functional/test_framework/blockfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def bip158_basic_element_hash(script_pub_key, N, block_hash):
2929

3030

3131
def bip158_relevant_scriptpubkeys(node, block_hash):
32-
""" Determines the basic filter relvant scriptPubKeys as defined in BIP158:
32+
""" Determines the basic filter relevant scriptPubKeys as defined in BIP158:
3333
3434
'A basic filter MUST contain exactly the following items for each transaction in a block:
3535
- The previous output script (the script being spent) for each input, except for

test/functional/wallet_avoidreuse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_sending_from_reused_address_fails(self, second_addr_type):
257257

258258
if not self.options.descriptors:
259259
# For the second send, we transmute it to a related single-key address
260-
# to make sure it's also detected as re-use
260+
# to make sure it's also detected as reuse
261261
fund_spk = address_to_scriptpubkey(fundaddr).hex()
262262
fund_decoded = self.nodes[0].decodescript(fund_spk)
263263
if second_addr_type == "p2sh-segwit":

test/lint/spelling.ignore-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bu
66
cachable
77
clen
88
crypted
9+
debbugs
910
fo
1011
fpr
1112
hights

0 commit comments

Comments
 (0)