Skip to content

Commit 0c9b9b7

Browse files
[trivial] Fix recently introduced typos in comments
1 parent 870cd2b commit 0c9b9b7

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ bool AppInitParameterInteraction()
934934
int64_t nMempoolSizeMin = GetArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 * 40;
935935
if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin)
936936
return InitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0)));
937-
// incremental relay fee sets the minimimum feerate increase necessary for BIP 125 replacement in the mempool
937+
// incremental relay fee sets the minimum feerate increase necessary for BIP 125 replacement in the mempool
938938
// and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting.
939939
if (IsArgSet("-incrementalrelayfee"))
940940
{

src/rpc/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CRPCConvertParam
2424
};
2525

2626
/**
27-
* Specifiy a (method, idx, name) here if the argument is a non-string RPC
27+
* Specify a (method, idx, name) here if the argument is a non-string RPC
2828
* argument and needs to be converted from JSON.
2929
*
3030
* @note Parameter indexes start from 0.

src/rpc/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ UniValue setmocktime(const JSONRPCRequest& request)
435435
// this could have an effect on mempool time-based eviction, as well as
436436
// IsCurrentForFeeEstimation() and IsInitialBlockDownload().
437437
// TODO: figure out the right way to synchronize around mocktime, and
438-
// ensure all callsites of GetTime() are accessing this safely.
438+
// ensure all call sites of GetTime() are accessing this safely.
439439
LOCK(cs_main);
440440

441441
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VNUM));

src/utiltime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* GetTimeMicros() and GetTimeMillis() both return the system time, but in
14-
* different units. GetTime() returns the sytem time in seconds, but also
14+
* different units. GetTime() returns the system time in seconds, but also
1515
* supports mocktime, where the time can be specified by the user, eg for
1616
* testing (eg with the setmocktime rpc, or -mocktime argument).
1717
*

src/validation.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi
14291429
// Helps prevent CPU exhaustion attacks.
14301430

14311431
// Skip script verification when connecting blocks under the
1432-
// assumedvalid block. Assuming the assumedvalid block is valid this
1432+
// assumevalid block. Assuming the assumevalid block is valid this
14331433
// is safe because block merkle hashes are still computed and checked,
14341434
// Of course, if an assumed valid block is invalid due to false scriptSigs
14351435
// this optimization would allow an invalid chain to be accepted.
@@ -1771,7 +1771,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
17711771
pindexBestHeader->GetAncestor(pindex->nHeight) == pindex &&
17721772
pindexBestHeader->nChainWork >= UintToArith256(chainparams.GetConsensus().nMinimumChainWork)) {
17731773
// This block is a member of the assumed verified chain and an ancestor of the best header.
1774-
// The equivalent time check discourages hashpower from extorting the network via DOS attack
1774+
// The equivalent time check discourages hash power from extorting the network via DOS attack
17751775
// into accepting an invalid block through telling users they must manually set assumevalid.
17761776
// Requiring a software change or burying the invalid block, regardless of the setting, makes
17771777
// it hard to hide the implication of the demand. This also avoids having release candidates
@@ -2486,12 +2486,12 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
24862486
bool fInitialDownload;
24872487
{
24882488
LOCK(cs_main);
2489-
{ // TODO: Tempoarily ensure that mempool removals are notified before
2489+
{ // TODO: Temporarily ensure that mempool removals are notified before
24902490
// connected transactions. This shouldn't matter, but the abandoned
24912491
// state of transactions in our wallet is currently cleared when we
24922492
// receive another notification and there is a race condition where
24932493
// notification of a connected conflict might cause an outside process
2494-
// to abandon a transaction and then have it inadvertantly cleared by
2494+
// to abandon a transaction and then have it inadvertently cleared by
24952495
// the notification that the conflicted transaction was evicted.
24962496
MemPoolConflictRemovalTracker mrt(mempool);
24972497
CBlockIndex *pindexOldTip = chainActive.Tip();
@@ -2520,7 +2520,7 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
25202520

25212521
} // MemPoolConflictRemovalTracker destroyed and conflict evictions are notified
25222522

2523-
// Transactions in the connnected block are notified
2523+
// Transactions in the connected block are notified
25242524
for (const auto& pair : connectTrace.blocksConnected) {
25252525
assert(pair.second);
25262526
const CBlock& block = *(pair.second);

src/validationinterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CValidationInterface {
5050
struct CMainSignals {
5151
/** Notifies listeners of updated block chain tip */
5252
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip;
53-
/** A posInBlock value for SyncTransaction calls for tranactions not
53+
/** A posInBlock value for SyncTransaction calls for transactions not
5454
* included in connected blocks such as transactions removed from mempool,
5555
* accepted to mempool or appearing in disconnected blocks.*/
5656
static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1;

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,7 @@ UniValue bumpfee(const JSONRPCRequest& request)
27252725
" be left unchanged from the original. If false, any input sequence numbers in the\n"
27262726
" original transaction that were less than 0xfffffffe will be increased to 0xfffffffe\n"
27272727
" so the new transaction will not be explicitly bip-125 replaceable (though it may\n"
2728-
" still be replacable in practice, for example if it has unconfirmed ancestors which\n"
2728+
" still be replaceable in practice, for example if it has unconfirmed ancestors which\n"
27292729
" are replaceable).\n"
27302730
" }\n"
27312731
"\nResult:\n"

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ bool CWallet::LoadToWallet(const CWalletTx& wtxIn)
10121012
* TODO: One exception to this is that the abandoned state is cleared under the
10131013
* assumption that any further notification of a transaction that was considered
10141014
* abandoned is an indication that it is not safe to be considered abandoned.
1015-
* Abandoned state should probably be more carefuly tracked via different
1015+
* Abandoned state should probably be more carefully tracked via different
10161016
* posInBlock signals or by checking mempool presence when necessary.
10171017
*/
10181018
bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlockIndex* pIndex, int posInBlock, bool fUpdate)

0 commit comments

Comments
 (0)