Skip to content

Commit 9d263bd

Browse files
committed
Typo fixes in comments
1 parent dd1304e commit 9d263bd

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

qa/rpc-tests/merkle_blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run_test(self):
7272
txid_spent = txin_spent["txid"]
7373
txid_unspent = txid1 if txin_spent["txid"] != txid1 else txid2
7474

75-
# We cant find the block from a fully-spent tx
75+
# We can't find the block from a fully-spent tx
7676
assert_raises(JSONRPCException, self.nodes[2].gettxoutproof, [txid_spent])
7777
# ...but we can if we specify the block
7878
assert_equal(self.nodes[2].verifytxoutproof(self.nodes[2].gettxoutproof([txid_spent], blockhash)), [txid_spent])

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ bool CNode::OutboundTargetReached(bool historicalBlockServingLimit)
21772177

21782178
if (historicalBlockServingLimit)
21792179
{
2180-
// keep a large enought buffer to at least relay each block once
2180+
// keep a large enough buffer to at least relay each block once
21812181
uint64_t timeLeftInCycle = GetMaxOutboundTimeLeftInCycle();
21822182
uint64_t buffer = timeLeftInCycle / 600 * MAX_BLOCK_SIZE;
21832183
if (buffer >= nMaxOutboundLimit || nMaxOutboundTotalBytesSentInCycle >= nMaxOutboundLimit - buffer)

src/netbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ bool static LookupIntern(const char *pszName, std::vector<CNetAddr>& vIP, unsign
140140
return false;
141141

142142
do {
143-
// Should set the timeout limit to a resonable value to avoid
143+
// Should set the timeout limit to a reasonable value to avoid
144144
// generating unnecessary checking call during the polling loop,
145145
// while it can still response to stop request quick enough.
146146
// 2 seconds looks fine in our situation.

src/policy/fees.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ double TxConfirmStats::EstimateMedianVal(int confTarget, double sufficientTxVal,
8787
int maxbucketindex = buckets.size() - 1;
8888

8989
// requireGreater means we are looking for the lowest fee/priority such that all higher
90-
// values pass, so we start at maxbucketindex (highest fee) and look at succesively
90+
// values pass, so we start at maxbucketindex (highest fee) and look at successively
9191
// smaller buckets until we reach failure. Otherwise, we are looking for the highest
9292
// fee/priority such that all lower values fail, and we go in the opposite direction.
9393
unsigned int startbucket = requireGreater ? maxbucketindex : 0;

src/policy/fees.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CTxMemPool;
2929
* included in blocks before transactions of lower fee/priority. So for
3030
* example if you wanted to know what fee you should put on a transaction to
3131
* be included in a block within the next 5 blocks, you would start by looking
32-
* at the bucket with with the highest fee transactions and verifying that a
32+
* at the bucket with the highest fee transactions and verifying that a
3333
* sufficiently high percentage of them were confirmed within 5 blocks and
3434
* then you would look at the next highest fee bucket, and so on, stopping at
3535
* the last bucket to pass the test. The average fee of transactions in this
@@ -87,13 +87,13 @@ class TxConfirmStats
8787
// Count the total # of txs in each bucket
8888
// Track the historical moving average of this total over blocks
8989
std::vector<double> txCtAvg;
90-
// and calcuate the total for the current block to update the moving average
90+
// and calculate the total for the current block to update the moving average
9191
std::vector<int> curBlockTxCt;
9292

9393
// Count the total # of txs confirmed within Y blocks in each bucket
9494
// Track the historical moving average of theses totals over blocks
9595
std::vector<std::vector<double> > confAvg; // confAvg[Y][X]
96-
// and calcuate the totals for the current block to update the moving averages
96+
// and calculate the totals for the current block to update the moving averages
9797
std::vector<std::vector<int> > curBlockConf; // curBlockConf[Y][X]
9898

9999
// Sum the total priority/fee of all tx's in each bucket

src/qt/clientmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ double ClientModel::getVerificationProgress(const CBlockIndex *tipIn) const
112112
void ClientModel::updateTimer()
113113
{
114114
// no locking required at this point
115-
// the following calls will aquire the required lock
115+
// the following calls will acquire the required lock
116116
Q_EMIT mempoolSizeChanged(getMempoolSize(), getMempoolDynamicUsage());
117117
Q_EMIT bytesChanged(getTotalBytesRecv(), getTotalBytesSent());
118118
}

src/qt/sendcoinsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ void SendCoinsDialog::coinControlUpdateLabels()
789789

790790
if (model->getOptionsModel()->getCoinControlFeatures())
791791
{
792-
// enable minium absolute fee UI controls
792+
// enable minimum absolute fee UI controls
793793
ui->radioCustomAtLeast->setVisible(true);
794794

795795
// only enable the feature if inputs are selected

src/test/merkle_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ BOOST_AUTO_TEST_CASE(merkle_test)
7777
int duplicate2 = mutate >= 2 ? 1 << ctz(ntx1) : 0; // Likewise for the second mutation.
7878
if (duplicate2 >= ntx1) break;
7979
int ntx2 = ntx1 + duplicate2;
80-
int duplicate3 = mutate >= 3 ? 1 << ctz(ntx2) : 0; // And for the the third mutation.
80+
int duplicate3 = mutate >= 3 ? 1 << ctz(ntx2) : 0; // And for the third mutation.
8181
if (duplicate3 >= ntx2) break;
8282
int ntx3 = ntx2 + duplicate3;
8383
// Build a block with ntx different transactions.

src/torcontrol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static std::map<std::string,std::string> ParseTorReplyMapping(const std::string
303303

304304
/** Read full contents of a file and return them in a std::string.
305305
* Returns a pair <status, string>.
306-
* If an error occured, status will be false, otherwise status will be true and the data will be returned in string.
306+
* If an error occurred, status will be false, otherwise status will be true and the data will be returned in string.
307307
*
308308
* @param maxsize Puts a maximum size limit on the file that is read. If the file is larger than this, truncated data
309309
* (with len > maxsize) will be returned.

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ UniValue listtransactions(const UniValue& params, bool fHelp)
14241424
" 'send' category of transactions.\n"
14251425
" \"confirmations\": n, (numeric) The number of confirmations for the transaction. Available for 'send' and \n"
14261426
" 'receive' category of transactions. Negative confirmations indicate the\n"
1427-
" transation conflicts with the block chain\n"
1427+
" transaction conflicts with the block chain\n"
14281428
" \"trusted\": xxx (bool) Whether we consider the outputs of this unconfirmed transaction safe to spend.\n"
14291429
" \"blockhash\": \"hashvalue\", (string) The block hash containing the transaction. Available for 'send' and 'receive'\n"
14301430
" category of transactions.\n"

0 commit comments

Comments
 (0)