Skip to content

Commit 55e473c

Browse files
committed
Merge bitcoin/bitcoin#30500: Fix lint-spelling warnings
bccfca0 Fix lint-spelling warnings (Lőrinc) Pull request description: These warnings were often polluting the CI output, e.g. https://github.com/bitcoin/bitcoin/pull/30499/checks?check_run_id=27745036545 > ./test/lint/lint-spelling.py before the change: ``` doc/design/libraries.md:100: targetted ==> targeted doc/developer-notes.md:495: dependant ==> dependent src/bench/sign_transaction.cpp:49: hashIn ==> hashing, hash in src/bitcoin-chainstate.cpp:213: hashIn ==> hashing, hash in src/bitcoin-chainstate.cpp:213: hashIn ==> hashing, hash in src/coins.cpp:24: viewIn ==> viewing, view in src/coins.cpp:24: viewIn ==> viewing, view in src/coins.cpp:29: viewIn ==> viewing, view in src/coins.cpp:29: viewIn ==> viewing, view in src/coins.h:44: outIn ==> outing, out in src/coins.h:44: outIn ==> outing, out in src/coins.h:45: outIn ==> outing, out in src/coins.h:45: outIn ==> outing, out in src/coins.h:215: viewIn ==> viewing, view in src/coins.h:220: viewIn ==> viewing, view in src/primitives/transaction.h:37: hashIn ==> hashing, hash in src/primitives/transaction.h:37: hashIn ==> hashing, hash in src/protocol.cpp:51: hashIn ==> hashing, hash in src/protocol.cpp:51: hashIn ==> hashing, hash in src/protocol.h:497: hashIn ==> hashing, hash in src/qt/forms/optionsdialog.ui:344: incomin ==> incoming src/qt/optionsdialog.cpp:445: proxys ==> proxies src/rpc/mining.cpp:987: hashIn ==> hashing, hash in src/rpc/mining.cpp:987: hashIn ==> hashing, hash in src/script/interpreter.h:298: amountIn ==> amounting, amount in src/script/interpreter.h:298: amountIn ==> amounting, amount in src/script/interpreter.h:299: amountIn ==> amounting, amount in src/script/interpreter.h:299: amountIn ==> amounting, amount in src/script/sigcache.h:70: amountIn ==> amounting, amount in src/script/sigcache.h:70: amountIn ==> amounting, amount in src/signet.cpp:144: amountIn ==> amounting, amount in src/test/fuzz/util/net.cpp:386: occured ==> occurred src/test/fuzz/util/net.cpp:398: occured ==> occurred src/util/vecdeque.h:79: deques ==> dequeues src/util/vecdeque.h:160: deques ==> dequeues src/util/vecdeque.h:184: deques ==> dequeues src/util/vecdeque.h:194: deques ==> dequeues src/validation.cpp:2130: re-declared ==> redeclared src/validation.h:348: outIn ==> outing, out in src/validation.h:349: outIn ==> outing, out in test/functional/wallet_bumpfee.py:851: atleast ==> at least ``` ACKs for top commit: Sjors: ACK bccfca0 josibake: ACK bitcoin/bitcoin@bccfca0 Tree-SHA512: 71d5f0d3319db50eaf9bcb9cb61da5da01767c60f5a782955a3f20e7149882049e33ebcc1788a71f109da2d7010fd1119c0a68c181f7a692de966cbd7e7511ae
2 parents 038730a + bccfca0 commit 55e473c

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

doc/design/libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class bitcoin-qt,bitcoind,bitcoin-cli,bitcoin-wallet bold
9797

9898
- *libbitcoin_consensus* should only depend on *libbitcoin_crypto*, and all other libraries besides *libbitcoin_crypto* should be allowed to depend on it.
9999

100-
- *libbitcoin_util* should be a standalone dependency that any library can depend on, and it should not depend on other libraries except *libbitcoin_crypto*. It provides basic utilities that fill in gaps in the C++ standard library and provide lightweight abstractions over platform-specific features. Since the util library is distributed with the kernel and is usable by kernel applications, it shouldn't contain functions that external code shouldn't call, like higher level code targetted at the node or wallet. (*libbitcoin_common* is a better place for higher level code, or code that is meant to be used by internal applications only.)
100+
- *libbitcoin_util* should be a standalone dependency that any library can depend on, and it should not depend on other libraries except *libbitcoin_crypto*. It provides basic utilities that fill in gaps in the C++ standard library and provide lightweight abstractions over platform-specific features. Since the util library is distributed with the kernel and is usable by kernel applications, it shouldn't contain functions that external code shouldn't call, like higher level code targeted at the node or wallet. (*libbitcoin_common* is a better place for higher level code, or code that is meant to be used by internal applications only.)
101101

102102
- *libbitcoin_common* is a home for miscellaneous shared code used by different Bitcoin Core applications. It should not depend on anything other than *libbitcoin_util*, *libbitcoin_consensus*, and *libbitcoin_crypto*.
103103

doc/developer-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ make cov
492492
# unit and functional tests.
493493
```
494494

495-
Additional LCOV options can be specified using `LCOV_OPTS`, but may be dependant
495+
Additional LCOV options can be specified using `LCOV_OPTS`, but may be dependent
496496
on the version of LCOV. For example, when using LCOV `2.x`, branch coverage can be
497497
enabled by setting `LCOV_OPTS="--rc branch_coverage=1"`, when configuring.
498498

src/qt/optionsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ void OptionsDialog::updateProxyValidationState()
442442
QValidatedLineEdit *otherProxyWidget = (pUiProxyIp == ui->proxyIpTor) ? ui->proxyIp : ui->proxyIpTor;
443443
if (pUiProxyIp->isValid() && (!ui->proxyPort->isEnabled() || ui->proxyPort->text().toInt() > 0) && (!ui->proxyPortTor->isEnabled() || ui->proxyPortTor->text().toInt() > 0))
444444
{
445-
setOkButtonState(otherProxyWidget->isValid()); //only enable ok button if both proxys are valid
445+
setOkButtonState(otherProxyWidget->isValid()); //only enable ok button if both proxies are valid
446446
clearStatusLabel();
447447
}
448448
else

src/test/fuzz/util/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ bool FuzzedSock::Wait(std::chrono::milliseconds timeout, Event requested, Event*
383383
return false;
384384
}
385385
if (occurred != nullptr) {
386-
// We simulate the requested event as occured when ConsumeBool()
386+
// We simulate the requested event as occurred when ConsumeBool()
387387
// returns false. This avoids simulating endless waiting if the
388388
// FuzzedDataProvider runs out of data.
389389
*occurred = m_fuzzed_data_provider.ConsumeBool() ? 0 : requested;
@@ -395,7 +395,7 @@ bool FuzzedSock::WaitMany(std::chrono::milliseconds timeout, EventsPerSock& even
395395
{
396396
for (auto& [sock, events] : events_per_sock) {
397397
(void)sock;
398-
// We simulate the requested event as occured when ConsumeBool()
398+
// We simulate the requested event as occurred when ConsumeBool()
399399
// returns false. This avoids simulating endless waiting if the
400400
// FuzzedDataProvider runs out of data.
401401
events.occurred = m_fuzzed_data_provider.ConsumeBool() ? 0 : events.requested;

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ ValidationCache::ValidationCache(const size_t script_execution_cache_bytes, cons
21272127
* Note that we may set state.reason to NOT_STANDARD for extra soft-fork flags in flags, block-checking
21282128
* callers should probably reset it to CONSENSUS in such cases.
21292129
*
2130-
* Non-static (and re-declared) in src/test/txvalidationcache_tests.cpp
2130+
* Non-static (and redeclared) in src/test/txvalidationcache_tests.cpp
21312131
*/
21322132
bool CheckInputScripts(const CTransaction& tx, TxValidationState& state,
21332133
const CCoinsViewCache& inputs, unsigned int flags, bool cacheSigStore,

test/functional/wallet_bumpfee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def test_bumpfee_with_feerate_ignores_walletincrementalrelayfee(self, rbf_node,
848848
# less than (original fee + incrementalrelayfee)
849849
assert_raises_rpc_error(-8, "Insufficient total fee", rbf_node.bumpfee, tx["txid"], {"fee_rate": 2.8})
850850

851-
# You can fee bump as long as the new fee set from fee_rate is atleast (original fee + incrementalrelayfee)
851+
# You can fee bump as long as the new fee set from fee_rate is at least (original fee + incrementalrelayfee)
852852
rbf_node.bumpfee(tx["txid"], {"fee_rate": 3})
853853
self.clear_mempool()
854854

test/lint/spelling.ignore-words.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
afile
2+
amountIn
23
asend
34
ba
45
blockin
@@ -7,8 +8,10 @@ cachable
78
clen
89
crypted
910
debbugs
11+
deques
1012
fo
1113
fpr
14+
hashIn
1215
hights
1316
inflight
1417
invokable
@@ -17,12 +20,14 @@ lief
1720
mor
1821
nd
1922
nin
23+
outIn
2024
requestor
2125
ser
2226
siz
2327
stap
2428
unparseable
2529
unser
2630
useable
31+
viewIn
2732
warmup
2833
wit

0 commit comments

Comments
 (0)