Skip to content

Commit cc16d99

Browse files
[trivial] Fix typos in comments
1 parent a7ea2f8 commit cc16d99

21 files changed

+24
-24
lines changed

contrib/linearize/example-linearize.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ input=/home/example/.bitcoin/blocks
2424
output_file=/home/example/Downloads/bootstrap.dat
2525
hashlist=hashlist.txt
2626

27-
# Maxmimum size in bytes of out-of-order blocks cache in memory
27+
# Maximum size in bytes of out-of-order blocks cache in memory
2828
out_of_order_cache_sz = 100000000
2929

3030
# Do we want the reverse the hash bytes coming from getblockhash?

src/addrman.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ bool CAddrMan::Add_(const CAddress& addr, const CNetAddr& source, int64_t nTimeP
255255
int nId;
256256
CAddrInfo* pinfo = Find(addr, &nId);
257257

258-
// Do not set a penality for a source's self-announcement
258+
// Do not set a penalty for a source's self-announcement
259259
if (addr == source) {
260260
nTimePenalty = 0;
261261
}

src/base58.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ template<typename K, int Size, CChainParams::Base58Type Type> class CBitcoinExtK
147147
K GetKey() {
148148
K ret;
149149
if (vchData.size() == Size) {
150-
//if base58 encouded data not holds a ext key, return a !IsValid() key
150+
// If base58 encoded data does not hold an ext key, return a !IsValid() key
151151
ret.Decode(&vchData[0]);
152152
}
153153
return ret;

src/bench/perf.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#if defined(__i386__) || defined(__x86_64__)
88

9-
/* These architectures support quering the cycle counter
9+
/* These architectures support querying the cycle counter
1010
* from user space, no need for any syscall overhead.
1111
*/
1212
void perf_init(void) { }

src/blockencodings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class BlockTransactions {
9999
}
100100
};
101101

102-
// Dumb serialization/storage-helper for CBlockHeaderAndShortTxIDs and PartiallyDownlaodedBlock
102+
// Dumb serialization/storage-helper for CBlockHeaderAndShortTxIDs and PartiallyDownloadedBlock
103103
struct PrefilledTransaction {
104104
// Used as an offset since last prefilled tx in CBlockHeaderAndShortTxIDs,
105105
// as a proper transaction-in-block-index in PartiallyDownloadedBlock

src/consensus/params.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct Params {
4747
/** Block height at which BIP66 becomes active */
4848
int BIP66Height;
4949
/**
50-
* Minimum blocks including miner confirmation of the total of 2016 blocks in a retargetting period,
50+
* Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period,
5151
* (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments.
5252
* Examples: 1916 for 95%, 1512 for testchains.
5353
*/

src/cuckoocache.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class cache
257257
*
258258
* First, epoch_check decrements and checks the cheap heuristic, and then does
259259
* a more expensive scan if the cheap heuristic runs out. If the expensive
260-
* scan suceeds, the epochs are aged and old elements are allow_erased. The
260+
* scan succeeds, the epochs are aged and old elements are allow_erased. The
261261
* cheap heuristic is reset to retrigger after the worst case growth of the
262262
* current epoch's elements would exceed the epoch_size.
263263
*/
@@ -395,7 +395,7 @@ class cache
395395
* 1) On first iteration, last_loc == invalid(), find returns last, so
396396
* last_loc defaults to locs[0].
397397
* 2) On further iterations, where last_loc == locs[k], last_loc will
398-
* go to locs[k+1 % 8], i.e., next of the 8 indicies wrapping around
398+
* go to locs[k+1 % 8], i.e., next of the 8 indices wrapping around
399399
* to 0 if needed.
400400
*
401401
* This prevents moving the element we just put in.

src/httprpc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
static const char* WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\"";
2626

2727
/** Simple one-shot callback timer to be used by the RPC mechanism to e.g.
28-
* re-lock the wellet.
28+
* re-lock the wallet.
2929
*/
3030
class HTTPRPCTimer : public RPCTimerBase
3131
{

src/init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
15531553
}
15541554

15551555
if (chainparams.GetConsensus().vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout != 0) {
1556-
// Only advertize witness capabilities if they have a reasonable start time.
1556+
// Only advertise witness capabilities if they have a reasonable start time.
15571557
// This allows us to have the code merged without a defined softfork, by setting its
15581558
// end time to 0.
15591559
// Note that setting NODE_WITNESS is never required: the only downside from not

src/netaddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class CNetAddr
4949
bool IsIPv4() const; // IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0)
5050
bool IsIPv6() const; // IPv6 address (not mapped IPv4, not Tor)
5151
bool IsRFC1918() const; // IPv4 private networks (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12)
52-
bool IsRFC2544() const; // IPv4 inter-network communcations (192.18.0.0/15)
52+
bool IsRFC2544() const; // IPv4 inter-network communications (192.18.0.0/15)
5353
bool IsRFC6598() const; // IPv4 ISP-level NAT (100.64.0.0/10)
5454
bool IsRFC5737() const; // IPv4 documentation addresses (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24)
5555
bool IsRFC3849() const; // IPv6 documentation address (2001:0DB8::/32)

src/qt/bantablemodel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class BanTablePriv
6464
}
6565

6666
if (sortColumn >= 0)
67-
// sort cachedBanlist (use stable sort to prevent rows jumping around unneceesarily)
67+
// sort cachedBanlist (use stable sort to prevent rows jumping around unnecessarily)
6868
qStableSort(cachedBanlist.begin(), cachedBanlist.end(), BannedNodeLessThan(sortColumn, sortOrder));
6969
}
7070

src/qt/paymentserver.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
//
2222
// When startup is finished and the main window is
2323
// shown, a signal is sent to slot uiReady(), which
24-
// emits a receivedURL() signal for any payment
24+
// emits a receivedURI() signal for any payment
2525
// requests that happened during startup.
2626
//
27-
// After startup, receivedURL() happens as usual.
27+
// After startup, receivedURI() happens as usual.
2828
//
2929
// This class has one more feature: a static
3030
// method that finds URIs passed in the command line

src/qt/sendcoinsdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ void SendCoinsDialog::updateGlobalFeeVariables()
608608
// set nMinimumTotalFee to 0 to not accidentally pay a custom fee
609609
CoinControlDialog::coinControl->nMinimumTotalFee = 0;
610610

611-
// show the estimated reuquired time for confirmation
611+
// show the estimated required time for confirmation
612612
ui->confirmationTargetLabel->setText(GUIUtil::formatDurationStr(nConfirmTarget * Params().GetConsensus().nPowTargetSpacing) + " / " + tr("%n block(s)", "", nConfirmTarget));
613613
}
614614
else

src/qt/utilitydialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) :
3939

4040
QString version = tr(PACKAGE_NAME) + " " + tr("version") + " " + QString::fromStdString(FormatFullVersion());
4141
/* On x86 add a bit specifier to the version so that users can distinguish between
42-
* 32 and 64 bit builds. On other architectures, 32/64 bit may be more ambigious.
42+
* 32 and 64 bit builds. On other architectures, 32/64 bit may be more ambiguous.
4343
*/
4444
#if defined(__x86_64__)
4545
version += " " + tr("(%1-bit)").arg(64);

src/rpc/net.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ UniValue getpeerinfo(const JSONRPCRequest& request)
150150
obj.push_back(Pair("pingwait", stats.dPingWait));
151151
obj.push_back(Pair("version", stats.nVersion));
152152
// Use the sanitized form of subver here, to avoid tricksy remote peers from
153-
// corrupting or modifiying the JSON output by putting special characters in
153+
// corrupting or modifying the JSON output by putting special characters in
154154
// their ver message.
155155
obj.push_back(Pair("subver", stats.cleanSubVer));
156156
obj.push_back(Pair("inbound", stats.fInbound));

src/script/script.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const char* GetOpName(opcodetype opcode)
129129
case OP_CHECKMULTISIG : return "OP_CHECKMULTISIG";
130130
case OP_CHECKMULTISIGVERIFY : return "OP_CHECKMULTISIGVERIFY";
131131

132-
// expanson
132+
// expansion
133133
case OP_NOP1 : return "OP_NOP1";
134134
case OP_CHECKLOCKTIMEVERIFY : return "OP_CHECKLOCKTIMEVERIFY";
135135
case OP_CHECKSEQUENCEVERIFY : return "OP_CHECKSEQUENCEVERIFY";

src/test/serialize_tests.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE(sizes)
9090

9191
BOOST_AUTO_TEST_CASE(floats_conversion)
9292
{
93-
// Choose values that map unambigiously to binary floating point to avoid
93+
// Choose values that map unambiguously to binary floating point to avoid
9494
// rounding issues at the compiler side.
9595
BOOST_CHECK_EQUAL(ser_uint32_to_float(0x00000000), 0.0F);
9696
BOOST_CHECK_EQUAL(ser_uint32_to_float(0x3f000000), 0.5F);
@@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE(floats_conversion)
109109

110110
BOOST_AUTO_TEST_CASE(doubles_conversion)
111111
{
112-
// Choose values that map unambigiously to binary floating point to avoid
112+
// Choose values that map unambiguously to binary floating point to avoid
113113
// rounding issues at the compiler side.
114114
BOOST_CHECK_EQUAL(ser_uint64_to_double(0x0000000000000000ULL), 0.0);
115115
BOOST_CHECK_EQUAL(ser_uint64_to_double(0x3fe0000000000000ULL), 0.5);

src/torcontrol.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class TorController
372372
struct event *reconnect_ev;
373373
float reconnect_timeout;
374374
CService service;
375-
/** Cooie for SAFECOOKIE auth */
375+
/** Cookie for SAFECOOKIE auth */
376376
std::vector<uint8_t> cookie;
377377
/** ClientNonce for SAFECOOKIE auth */
378378
std::vector<uint8_t> clientNonce;

src/txmempool.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ enum class MemPoolRemovalReason {
355355
* Transactions are added when they are seen on the network (or created by the
356356
* local node), but not all transactions seen are added to the pool. For
357357
* example, the following new transactions will not be added to the mempool:
358-
* - a transaction which doesn't make the mimimum fee requirements.
358+
* - a transaction which doesn't meet the minimum fee requirements.
359359
* - a new transaction that double-spends an input of a transaction already in
360360
* the pool where the new transaction does not meet the Replace-By-Fee
361361
* requirements as defined in BIP 125.

src/utiltime.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void MilliSleep(int64_t n)
6363
{
6464

6565
/**
66-
* Boost's sleep_for was uninterruptable when backed by nanosleep from 1.50
66+
* Boost's sleep_for was uninterruptible when backed by nanosleep from 1.50
6767
* until fixed in 1.52. Use the deprecated sleep method for the broken case.
6868
* See: https://svn.boost.org/trac/boost/ticket/7238
6969
*/

src/wallet/wallet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
25762576
// BIP125 defines opt-in RBF as any nSequence < maxint-1, so
25772577
// we use the highest possible value in that range (maxint-2)
25782578
// to avoid conflicting with other possible uses of nSequence,
2579-
// and in the spirit of "smallest posible change from prior
2579+
// and in the spirit of "smallest possible change from prior
25802580
// behavior."
25812581
for (const auto& coin : setCoins)
25822582
txNew.vin.push_back(CTxIn(coin.first->GetHash(),coin.second,CScript(),

0 commit comments

Comments
 (0)