Skip to content

Commit dbf30ff

Browse files
[trivial] Fix typos in comments
1 parent 0c17afc commit dbf30ff

12 files changed

+12
-12
lines changed

src/base58.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet)
134134
vchRet.clear();
135135
return false;
136136
}
137-
// re-calculate the checksum, insure it matches the included 4-byte checksum
137+
// re-calculate the checksum, ensure it matches the included 4-byte checksum
138138
uint256 hash = Hash(vchRet.begin(), vchRet.end() - 4);
139139
if (memcmp(&hash, &vchRet.end()[-4], 4) != 0) {
140140
vchRet.clear();

src/bench/bench.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Simple micro-benchmarking framework; API mostly matches a subset of the Google Benchmark
1616
// framework (see https://github.com/google/benchmark)
17-
// Wny not use the Google Benchmark framework? Because adding Yet Another Dependency
17+
// Why not use the Google Benchmark framework? Because adding Yet Another Dependency
1818
// (that uses cmake as its build system and has lots of features we don't need) isn't
1919
// worth it.
2020

src/blockencodings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ ReadStatus PartiallyDownloadedBlock::InitData(const CBlockHeaderAndShortTxIDs& c
147147
// request it.
148148
// This should be rare enough that the extra bandwidth doesn't matter,
149149
// but eating a round-trip due to FillBlock failure would be annoying
150-
// Note that we dont want duplication between extra_txn and mempool to
150+
// Note that we don't want duplication between extra_txn and mempool to
151151
// trigger this case, so we compare witness hashes first
152152
if (txn_available[idit->second] &&
153153
txn_available[idit->second]->GetWitnessHash() != extra_txn[i].second->GetWitnessHash()) {

src/qt/guiutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void SubstituteFonts(const QString& language)
443443
/* 10.10 or later system */
444444
if (language == "zh_CN" || language == "zh_TW" || language == "zh_HK") // traditional or simplified Chinese
445445
QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Heiti SC");
446-
else if (language == "ja") // Japanesee
446+
else if (language == "ja") // Japanese
447447
QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Songti SC");
448448
else
449449
QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Lucida Grande");

src/qt/test/paymentservertests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void PaymentServerTests::paymentServerTests()
142142
byteArray = QByteArray((const char*)&data[0], data.size());
143143
r.paymentRequest.parse(byteArray);
144144
// Ensure the request is initialized, because network "main" is default, even for
145-
// uninizialized payment requests and that will fail our test here.
145+
// uninitialized payment requests and that will fail our test here.
146146
QVERIFY(r.paymentRequest.IsInitialized());
147147
QCOMPARE(PaymentServer::verifyNetwork(r.paymentRequest.getDetails()), false);
148148

src/test/addrman_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ BOOST_AUTO_TEST_CASE(addrman_getaddr)
413413
size_t percent23 = (addrman.size() * 23) / 100;
414414
BOOST_CHECK(vAddr.size() == percent23);
415415
BOOST_CHECK(vAddr.size() == 461);
416-
// (Addrman.size() < number of addresses added) due to address collisons.
416+
// (Addrman.size() < number of addresses added) due to address collisions.
417417
BOOST_CHECK(addrman.size() == 2007);
418418
}
419419

src/test/checkqueue_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_UniqueCheck)
303303
}
304304

305305

306-
// Test that blocks which might allocate lots of memory free their memory agressively.
306+
// Test that blocks which might allocate lots of memory free their memory aggressively.
307307
//
308308
// This test attempts to catch a pathological case where by lazily freeing
309309
// checks might mean leaving a check un-swapped out, and decreasing by 1 each

src/test/cuckoocache_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ void test_cache_generations()
379379
// Loose Check that hit rate is above min_hit_rate
380380
BOOST_CHECK(hit > min_hit_rate);
381381
// Tighter check, count number of times we are less than tight_hit_rate
382-
// (and implicityly, greater than min_hit_rate)
382+
// (and implicitly, greater than min_hit_rate)
383383
out_of_tight_tolerance += hit < tight_hit_rate;
384384
}
385385
// Check that being out of tolerance happens less than

src/test/merkle_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ BOOST_AUTO_TEST_CASE(merkle_test)
118118
// If no mutation was done (once for every ntx value), try up to 16 branches.
119119
if (mutate == 0) {
120120
for (int loop = 0; loop < std::min(ntx, 16); loop++) {
121-
// If ntx <= 16, try all branches. Otherise, try 16 random ones.
121+
// If ntx <= 16, try all branches. Otherwise, try 16 random ones.
122122
int mtx = loop;
123123
if (ntx > 16) {
124124
mtx = insecure_rand() % ntx;

src/test/rpc_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
276276
BOOST_CHECK(banned_until.get_int64() > now);
277277
BOOST_CHECK(banned_until.get_int64()-now <= 200);
278278

279-
// must throw an exception because 127.0.0.1 is in already banned suubnet range
279+
// must throw an exception because 127.0.0.1 is in already banned subnet range
280280
BOOST_CHECK_THROW(r = CallRPC(std::string("setban 127.0.0.1 add")), std::runtime_error);
281281

282282
BOOST_CHECK_NO_THROW(CallRPC(std::string("setban 127.0.0.0/24 remove")));

0 commit comments

Comments
 (0)