mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
[trivial] Fix recently introduced typos in comments
This commit is contained in:
parent
870cd2b58a
commit
0c9b9b7d64
@ -934,7 +934,7 @@ bool AppInitParameterInteraction()
|
|||||||
int64_t nMempoolSizeMin = GetArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 * 40;
|
int64_t nMempoolSizeMin = GetArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 * 40;
|
||||||
if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin)
|
if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin)
|
||||||
return InitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0)));
|
return InitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0)));
|
||||||
// incremental relay fee sets the minimimum feerate increase necessary for BIP 125 replacement in the mempool
|
// incremental relay fee sets the minimum feerate increase necessary for BIP 125 replacement in the mempool
|
||||||
// and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting.
|
// and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting.
|
||||||
if (IsArgSet("-incrementalrelayfee"))
|
if (IsArgSet("-incrementalrelayfee"))
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifiy a (method, idx, name) here if the argument is a non-string RPC
|
* Specify a (method, idx, name) here if the argument is a non-string RPC
|
||||||
* argument and needs to be converted from JSON.
|
* argument and needs to be converted from JSON.
|
||||||
*
|
*
|
||||||
* @note Parameter indexes start from 0.
|
* @note Parameter indexes start from 0.
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* GetTimeMicros() and GetTimeMillis() both return the system time, but in
|
* GetTimeMicros() and GetTimeMillis() both return the system time, but in
|
||||||
* different units. GetTime() returns the sytem time in seconds, but also
|
* different units. GetTime() returns the system time in seconds, but also
|
||||||
* supports mocktime, where the time can be specified by the user, eg for
|
* supports mocktime, where the time can be specified by the user, eg for
|
||||||
* testing (eg with the setmocktime rpc, or -mocktime argument).
|
* testing (eg with the setmocktime rpc, or -mocktime argument).
|
||||||
*
|
*
|
||||||
|
@ -1429,7 +1429,7 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi
|
|||||||
// Helps prevent CPU exhaustion attacks.
|
// Helps prevent CPU exhaustion attacks.
|
||||||
|
|
||||||
// Skip script verification when connecting blocks under the
|
// Skip script verification when connecting blocks under the
|
||||||
// assumedvalid block. Assuming the assumedvalid block is valid this
|
// assumevalid block. Assuming the assumevalid block is valid this
|
||||||
// is safe because block merkle hashes are still computed and checked,
|
// is safe because block merkle hashes are still computed and checked,
|
||||||
// Of course, if an assumed valid block is invalid due to false scriptSigs
|
// Of course, if an assumed valid block is invalid due to false scriptSigs
|
||||||
// this optimization would allow an invalid chain to be accepted.
|
// this optimization would allow an invalid chain to be accepted.
|
||||||
@ -2486,12 +2486,12 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
|
|||||||
bool fInitialDownload;
|
bool fInitialDownload;
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
{ // TODO: Tempoarily ensure that mempool removals are notified before
|
{ // TODO: Temporarily ensure that mempool removals are notified before
|
||||||
// connected transactions. This shouldn't matter, but the abandoned
|
// connected transactions. This shouldn't matter, but the abandoned
|
||||||
// state of transactions in our wallet is currently cleared when we
|
// state of transactions in our wallet is currently cleared when we
|
||||||
// receive another notification and there is a race condition where
|
// receive another notification and there is a race condition where
|
||||||
// notification of a connected conflict might cause an outside process
|
// notification of a connected conflict might cause an outside process
|
||||||
// to abandon a transaction and then have it inadvertantly cleared by
|
// to abandon a transaction and then have it inadvertently cleared by
|
||||||
// the notification that the conflicted transaction was evicted.
|
// the notification that the conflicted transaction was evicted.
|
||||||
MemPoolConflictRemovalTracker mrt(mempool);
|
MemPoolConflictRemovalTracker mrt(mempool);
|
||||||
CBlockIndex *pindexOldTip = chainActive.Tip();
|
CBlockIndex *pindexOldTip = chainActive.Tip();
|
||||||
@ -2520,7 +2520,7 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
|
|||||||
|
|
||||||
} // MemPoolConflictRemovalTracker destroyed and conflict evictions are notified
|
} // MemPoolConflictRemovalTracker destroyed and conflict evictions are notified
|
||||||
|
|
||||||
// Transactions in the connnected block are notified
|
// Transactions in the connected block are notified
|
||||||
for (const auto& pair : connectTrace.blocksConnected) {
|
for (const auto& pair : connectTrace.blocksConnected) {
|
||||||
assert(pair.second);
|
assert(pair.second);
|
||||||
const CBlock& block = *(pair.second);
|
const CBlock& block = *(pair.second);
|
||||||
|
@ -50,7 +50,7 @@ protected:
|
|||||||
struct CMainSignals {
|
struct CMainSignals {
|
||||||
/** Notifies listeners of updated block chain tip */
|
/** Notifies listeners of updated block chain tip */
|
||||||
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip;
|
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip;
|
||||||
/** A posInBlock value for SyncTransaction calls for tranactions not
|
/** A posInBlock value for SyncTransaction calls for transactions not
|
||||||
* included in connected blocks such as transactions removed from mempool,
|
* included in connected blocks such as transactions removed from mempool,
|
||||||
* accepted to mempool or appearing in disconnected blocks.*/
|
* accepted to mempool or appearing in disconnected blocks.*/
|
||||||
static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1;
|
static const int SYNC_TRANSACTION_NOT_IN_BLOCK = -1;
|
||||||
|
@ -2725,7 +2725,7 @@ UniValue bumpfee(const JSONRPCRequest& request)
|
|||||||
" be left unchanged from the original. If false, any input sequence numbers in the\n"
|
" be left unchanged from the original. If false, any input sequence numbers in the\n"
|
||||||
" original transaction that were less than 0xfffffffe will be increased to 0xfffffffe\n"
|
" original transaction that were less than 0xfffffffe will be increased to 0xfffffffe\n"
|
||||||
" so the new transaction will not be explicitly bip-125 replaceable (though it may\n"
|
" so the new transaction will not be explicitly bip-125 replaceable (though it may\n"
|
||||||
" still be replacable in practice, for example if it has unconfirmed ancestors which\n"
|
" still be replaceable in practice, for example if it has unconfirmed ancestors which\n"
|
||||||
" are replaceable).\n"
|
" are replaceable).\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
"\nResult:\n"
|
"\nResult:\n"
|
||||||
|
@ -1012,7 +1012,7 @@ bool CWallet::LoadToWallet(const CWalletTx& wtxIn)
|
|||||||
* TODO: One exception to this is that the abandoned state is cleared under the
|
* TODO: One exception to this is that the abandoned state is cleared under the
|
||||||
* assumption that any further notification of a transaction that was considered
|
* assumption that any further notification of a transaction that was considered
|
||||||
* abandoned is an indication that it is not safe to be considered abandoned.
|
* abandoned is an indication that it is not safe to be considered abandoned.
|
||||||
* Abandoned state should probably be more carefuly tracked via different
|
* Abandoned state should probably be more carefully tracked via different
|
||||||
* posInBlock signals or by checking mempool presence when necessary.
|
* posInBlock signals or by checking mempool presence when necessary.
|
||||||
*/
|
*/
|
||||||
bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlockIndex* pIndex, int posInBlock, bool fUpdate)
|
bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlockIndex* pIndex, int posInBlock, bool fUpdate)
|
||||||
|
Loading…
Reference in New Issue
Block a user