Skip to content

Commit 86b72b2

Browse files
laanwjPastaPastaPasta
authored andcommitted
Merge bitcoin#10633: doc: Fix various typos
0a5a6b9 Fixed multiple typos (Dimitris Tsapakidis) Tree-SHA512: 57748710bcbc03945b160db5e95bd686a2c64605f25d5e11d8ed9d0e1be3b3bf287a63588dc6eb33d0cef4ff17c765fda7c226d667a357acc539c8fcf2b9bb7e
1 parent 620e15f commit 86b72b2

28 files changed

+56
-56
lines changed

doc/developer-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ General C++
267267

268268
- Assertions should not have side-effects
269269

270-
- *Rationale*: Even though the source code is set to to refuse to compile
270+
- *Rationale*: Even though the source code is set to refuse to compile
271271
with assertions disabled, having side-effects in assertions is unexpected and
272272
makes the code harder to understand
273273

src/chain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ arith_uint256 GetBlockProof(const CBlockIndex& block)
126126
if (fNegative || fOverflow || bnTarget == 0)
127127
return 0;
128128
// We need to compute 2**256 / (bnTarget+1), but we can't represent 2**256
129-
// as it's too large for a arith_uint256. However, as 2**256 is at least as large
129+
// as it's too large for an arith_uint256. However, as 2**256 is at least as large
130130
// as bnTarget+1, it is equal to ((2**256 - bnTarget - 1) / (bnTarget+1)) + 1,
131131
// or ~bnTarget / (nTarget+1) + 1.
132132
return (~bnTarget / (bnTarget + 1)) + 1;

src/cuckoocache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,15 @@ class cache
176176
*/
177177
mutable std::vector<bool> epoch_flags;
178178

179-
/** epoch_heuristic_counter is used to determine when a epoch might be aged
179+
/** epoch_heuristic_counter is used to determine when an epoch might be aged
180180
* & an expensive scan should be done. epoch_heuristic_counter is
181181
* decremented on insert and reset to the new number of inserts which would
182182
* cause the epoch to reach epoch_size when it reaches zero.
183183
*/
184184
uint32_t epoch_heuristic_counter;
185185

186186
/** epoch_size is set to be the number of elements supposed to be in a
187-
* epoch. When the number of non-erased elements in a epoch
187+
* epoch. When the number of non-erased elements in an epoch
188188
* exceeds epoch_size, a new epoch should be started and all
189189
* current entries demoted. epoch_size is set to be 45% of size because
190190
* we want to keep load around 90%, and we support 3 epochs at once --

src/httpserver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class HTTPRequest
8686

8787
/**
8888
* Get the request header specified by hdr, or an empty string.
89-
* Return an pair (isPresent,string).
89+
* Return a pair (isPresent,string).
9090
*/
9191
std::pair<bool, std::string> GetHeader(const std::string& hdr);
9292

@@ -125,7 +125,7 @@ class HTTPClosure
125125
virtual ~HTTPClosure() {}
126126
};
127127

128-
/** Event class. This can be used either as an cross-thread trigger or as a timer.
128+
/** Event class. This can be used either as a cross-thread trigger or as a timer.
129129
*/
130130
class HTTPEvent
131131
{

src/leveldb/db/version_set.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class Compaction {
376376
// Each compaction reads inputs from "level_" and "level_+1"
377377
std::vector<FileMetaData*> inputs_[2]; // The two sets of inputs
378378

379-
// State used to check for number of of overlapping grandparent files
379+
// State used to check for number of overlapping grandparent files
380380
// (parent == level_ + 1, grandparent == level_ + 2)
381381
std::vector<FileMetaData*> grandparents_;
382382
size_t grandparent_index_; // Index in grandparent_starts_

src/qt/clientmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, const CB
340340
}
341341
// if we are in-sync, update the UI regardless of last update time
342342
if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
343-
//pass a async signal to the UI thread
343+
//pass an async signal to the UI thread
344344
QMetaObject::invokeMethod(clientmodel, "numBlocksChanged", Qt::QueuedConnection,
345345
Q_ARG(int, pIndex->nHeight),
346346
Q_ARG(QDateTime, QDateTime::fromTime_t(pIndex->GetBlockTime())),

src/qt/forms/optionsdialog.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
<bool>false</bool>
435435
</property>
436436
<property name="toolTip">
437-
<string>Shows, if the supplied default SOCKS5 proxy is used to reach peers via this network type.</string>
437+
<string>Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.</string>
438438
</property>
439439
<property name="text">
440440
<string/>
@@ -457,7 +457,7 @@
457457
<bool>false</bool>
458458
</property>
459459
<property name="toolTip">
460-
<string>Shows, if the supplied default SOCKS5 proxy is used to reach peers via this network type.</string>
460+
<string>Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.</string>
461461
</property>
462462
<property name="text">
463463
<string/>
@@ -480,7 +480,7 @@
480480
<bool>false</bool>
481481
</property>
482482
<property name="toolTip">
483-
<string>Shows, if the supplied default SOCKS5 proxy is used to reach peers via this network type.</string>
483+
<string>Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.</string>
484484
</property>
485485
<property name="text">
486486
<string/>

src/qt/modaloverlay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void ModalOverlay::tipUpdate(int count, const QDateTime& blockDate, double nVeri
129129
return;
130130

131131
// estimate the number of headers left based on nPowTargetSpacing
132-
// and check if the gui is not aware of the the best header (happens rarely)
132+
// and check if the gui is not aware of the best header (happens rarely)
133133
int estimateNumHeadersLeft = bestHeaderDate.secsTo(currentDate) / Params().GetConsensus().nPowTargetSpacing;
134134
bool hasBestHeader = bestHeaderHeight >= count;
135135

src/qt/rpcconsole.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ void RPCConsole::setFontSize(int newSize)
702702
{
703703
QSettings settings;
704704

705-
//don't allow a insane font size
705+
//don't allow an insane font size
706706
if (newSize < FONT_RANGE.width() || newSize > FONT_RANGE.height())
707707
return;
708708

@@ -830,7 +830,7 @@ void RPCConsole::clear(bool clearHistory)
830830
tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg("<b>"+clsKey+"</b>") + "<br>" +
831831
tr("Type <b>help</b> for an overview of available commands.")) +
832832
"<br><span class=\"secwarning\">" +
833-
tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramification of a command.") +
833+
tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramifications of a command.") +
834834
"</span>",
835835
true);
836836
}

src/qt/walletmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
398398
transaction_array.append(&(ssTx[0]), ssTx.size());
399399
}
400400

401-
// Add addresses / update labels that we've sent to to the address book,
401+
// Add addresses / update labels that we've sent to the address book,
402402
// and emit coinsSent signal for each recipient
403403
for (const SendCoinsRecipient &rcp : transaction.getRecipients())
404404
{

0 commit comments

Comments
 (0)