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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

0 commit comments

Comments
 (0)