mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
[trivial] Fix three recently introduced typos
``` $ git blame src/policy/fees.cpp | grep becuase3810e976
(2017-03-07 11:33:44 -0500 789) * checks for 2*target becuase we are taking the max over all time $ git blame src/policy/fees.h | grep successfullly2d2e1705
(2017-04-12 12:29:03 -0400 54) * representing that a tx was successfullly confirmed in less than or equal to $ git blame src/wallet/feebumper.cpp | grep "hasen't"a3878374
(2017-05-11 09:34:39 +0200 258) // make sure the transaction still has no descendants and hasen't been mined in the meantime ```
This commit is contained in:
parent
e4775167cb
commit
efc2e3302d
@ -786,7 +786,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, int *answerFoun
|
|||||||
* This is necessary to preserve monotonically increasing estimates.
|
* This is necessary to preserve monotonically increasing estimates.
|
||||||
* For non-conservative estimates we do the same thing for 2*target, but
|
* For non-conservative estimates we do the same thing for 2*target, but
|
||||||
* for conservative estimates we want to skip these shorter horizons
|
* for conservative estimates we want to skip these shorter horizons
|
||||||
* checks for 2*target becuase we are taking the max over all time
|
* checks for 2*target because we are taking the max over all time
|
||||||
* horizons so we already have monotonically increasing estimates and
|
* horizons so we already have monotonically increasing estimates and
|
||||||
* the purpose of conservative estimates is not to let short term
|
* the purpose of conservative estimates is not to let short term
|
||||||
* fluctuations lower our estimates by too much.
|
* fluctuations lower our estimates by too much.
|
||||||
|
@ -51,7 +51,7 @@ class TxConfirmStats;
|
|||||||
* blocks. This is is tracked in 3 different data sets each up to a maximum
|
* blocks. This is is tracked in 3 different data sets each up to a maximum
|
||||||
* number of periods. Within each data set we have an array of counters in each
|
* number of periods. Within each data set we have an array of counters in each
|
||||||
* feerate bucket and we increment all the counters from Y' up to max periods
|
* feerate bucket and we increment all the counters from Y' up to max periods
|
||||||
* representing that a tx was successfullly confirmed in less than or equal to
|
* representing that a tx was successfully confirmed in less than or equal to
|
||||||
* that many periods. We want to save a history of this information, so at any
|
* that many periods. We want to save a history of this information, so at any
|
||||||
* time we have a counter of the total number of transactions that happened in a
|
* time we have a counter of the total number of transactions that happened in a
|
||||||
* given feerate bucket and the total number that were confirmed in each of the
|
* given feerate bucket and the total number that were confirmed in each of the
|
||||||
|
@ -255,7 +255,7 @@ bool CFeeBumper::commit(CWallet *pWallet)
|
|||||||
}
|
}
|
||||||
CWalletTx& oldWtx = pWallet->mapWallet[txid];
|
CWalletTx& oldWtx = pWallet->mapWallet[txid];
|
||||||
|
|
||||||
// make sure the transaction still has no descendants and hasen't been mined in the meantime
|
// make sure the transaction still has no descendants and hasn't been mined in the meantime
|
||||||
if (!preconditionChecks(pWallet, oldWtx)) {
|
if (!preconditionChecks(pWallet, oldWtx)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user