Skip to content

Commit 4d9b425

Browse files
rex4539Dimitris Apostolou
authored andcommitted
Fix typos
1 parent 00d1680 commit 4d9b425

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+55
-55
lines changed

src/core_write.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,6 @@ void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry,
209209
entry.pushKV("blockhash", hashBlock.GetHex());
210210

211211
if (include_hex) {
212-
entry.pushKV("hex", EncodeHexTx(tx, serialize_flags)); // the hex-encoded transaction. used the name "hex" to be consistent with the verbose output of "getrawtransaction".
212+
entry.pushKV("hex", EncodeHexTx(tx, serialize_flags)); // The hex-encoded transaction. Used the name "hex" to be consistent with the verbose output of "getrawtransaction".
213213
}
214214
}

src/cuckoocache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class cache
224224
*
225225
* Instead we treat the 32-bit random number as a Q32 fixed-point number in the range
226226
* [0,1) and simply multiply it by the size. Then we just shift the result down by
227-
* 32-bits to get our bucket number. The results has non-uniformity the same as a
227+
* 32-bits to get our bucket number. The result has non-uniformity the same as a
228228
* mod, but it is much faster to compute. More about this technique can be found at
229229
* http://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/
230230
*

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ void CConnman::ThreadOpenAddedConnections()
19541954
for (const AddedNodeInfo& info : vInfo) {
19551955
if (!info.fConnected) {
19561956
if (!grant.TryAcquire()) {
1957-
// If we've used up our semaphore and need a new one, lets not wait here since while we are waiting
1957+
// If we've used up our semaphore and need a new one, let's not wait here since while we are waiting
19581958
// the addednodeinfo state might change.
19591959
break;
19601960
}

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ bool MarkBlockAsInFlight(NodeId nodeid, const uint256& hash, const CBlockIndex*
339339
CNodeState *state = State(nodeid);
340340
assert(state != nullptr);
341341

342-
// Short-circuit most stuff in case its from the same node
342+
// Short-circuit most stuff in case it is from the same node
343343
std::map<uint256, std::pair<NodeId, std::list<QueuedBlock>::iterator> >::iterator itInFlight = mapBlocksInFlight.find(hash);
344344
if (itInFlight != mapBlocksInFlight.end() && itInFlight->second.first == nodeid) {
345345
if (pit) {
@@ -518,7 +518,7 @@ void FindNextBlocksToDownload(NodeId nodeid, unsigned int count, std::vector<con
518518
}
519519

520520
// Iterate over those blocks in vToFetch (in forward direction), adding the ones that
521-
// are not yet downloaded and not in flight to vBlocks. In the mean time, update
521+
// are not yet downloaded and not in flight to vBlocks. In the meantime, update
522522
// pindexLastCommonBlock as long as all ancestors are already downloaded, or if it's
523523
// already part of our chain (and therefore don't need it even if pruned).
524524
for (const CBlockIndex* pindex : vToFetch) {

src/qt/coincontroldialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void CoinControlDialog::showMenu(const QPoint &point)
206206
contextMenuItem = item;
207207

208208
// disable some items (like Copy Transaction ID, lock, unlock) for tree roots in context menu
209-
if (item->text(COLUMN_TXHASH).length() == 64) // transaction hash is 64 characters (this means its a child node, so its not a parent node in tree mode)
209+
if (item->text(COLUMN_TXHASH).length() == 64) // transaction hash is 64 characters (this means it is a child node, so it is not a parent node in tree mode)
210210
{
211211
copyTransactionHashAction->setEnabled(true);
212212
if (model->isLockedCoin(uint256S(item->text(COLUMN_TXHASH).toStdString()), item->text(COLUMN_VOUT_INDEX).toUInt()))
@@ -374,7 +374,7 @@ void CoinControlDialog::radioListMode(bool checked)
374374
// checkbox clicked by user
375375
void CoinControlDialog::viewItemChanged(QTreeWidgetItem* item, int column)
376376
{
377-
if (column == COLUMN_CHECKBOX && item->text(COLUMN_TXHASH).length() == 64) // transaction hash is 64 characters (this means its a child node, so its not a parent node in tree mode)
377+
if (column == COLUMN_CHECKBOX && item->text(COLUMN_TXHASH).length() == 64) // transaction hash is 64 characters (this means it is a child node, so it is not a parent node in tree mode)
378378
{
379379
COutPoint outpt(uint256S(item->text(COLUMN_TXHASH).toStdString()), item->text(COLUMN_VOUT_INDEX).toUInt());
380380

src/qt/guiutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ namespace GUIUtil
141141
* Makes a QTableView last column feel as if it was being resized from its left border.
142142
* Also makes sure the column widths are never larger than the table's viewport.
143143
* In Qt, all columns are resizable from the right, but it's not intuitive resizing the last column from the right.
144-
* Usually our second to last columns behave as if stretched, and when on strech mode, columns aren't resizable
144+
* Usually our second to last columns behave as if stretched, and when on stretch mode, columns aren't resizable
145145
* interactively or programmatically.
146146
*
147147
* This helper object takes care of this issue.

src/qt/modaloverlay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void ModalOverlay::tipUpdate(int count, const QDateTime& blockDate, double nVeri
8181
// keep a vector of samples of verification progress at height
8282
blockProcessTime.push_front(qMakePair(currentDate.toMSecsSinceEpoch(), nVerificationProgress));
8383

84-
// show progress speed if we have more then one sample
84+
// show progress speed if we have more than one sample
8585
if (blockProcessTime.size() >= 2) {
8686
double progressDelta = 0;
8787
double progressPerHour = 0;

src/qt/splashscreen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
9191

9292
pixPaint.setFont(QFont(font, 15*fontFactor));
9393

94-
// if the version string is to long, reduce size
94+
// if the version string is too long, reduce size
9595
fm = pixPaint.fontMetrics();
9696
int versionTextWidth = fm.width(versionText);
9797
if(versionTextWidth > titleTextWidth+paddingRight-10) {

src/qt/walletmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ bool WalletModel::bumpFee(uint256 hash)
698698
confirmationDialog.exec();
699699
QMessageBox::StandardButton retval = static_cast<QMessageBox::StandardButton>(confirmationDialog.result());
700700

701-
// cancel sign&broadcast if users doesn't want to bump the fee
701+
// cancel sign&broadcast if user doesn't want to bump the fee
702702
if (retval != QMessageBox::Yes) {
703703
return false;
704704
}

src/random.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void RandAddSeedSleep();
3232

3333
/**
3434
* Function to gather random data from multiple sources, failing whenever any
35-
* of those source fail to provide a result.
35+
* of those sources fail to provide a result.
3636
*/
3737
void GetStrongRandBytes(unsigned char* buf, int num);
3838

0 commit comments

Comments
 (0)