mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 07:39:08 +01:00
Comments and improved documentation
This commit is contained in:
@@ -729,6 +729,9 @@ double CBlockPolicyEstimator::estimateCombinedFee(unsigned int confTarget, doubl
|
||||
return estimate;
|
||||
}
|
||||
|
||||
/** Ensure that for a conservative estimate, the DOUBLE_SUCCESS_PCT is also met
|
||||
* at 2 * target for any longer time horizons.
|
||||
*/
|
||||
double CBlockPolicyEstimator::estimateConservativeFee(unsigned int doubleTarget) const
|
||||
{
|
||||
double estimate = -1;
|
||||
@@ -744,6 +747,13 @@ double CBlockPolicyEstimator::estimateConservativeFee(unsigned int doubleTarget)
|
||||
return estimate;
|
||||
}
|
||||
|
||||
/** estimateSmartFee returns the max of the feerates calculated with a 60%
|
||||
* threshold required at target / 2, an 85% threshold required at target and a
|
||||
* 95% threshold required at 2 * target. Each calculation is performed at the
|
||||
* shortest time horizon which tracks the required target. Conservative
|
||||
* estimates, however, required the 95% threshold at 2 * target be met for any
|
||||
* longer time horizons also.
|
||||
*/
|
||||
CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, int *answerFoundAtTarget, const CTxMemPool& pool, bool conservative) const
|
||||
{
|
||||
if (answerFoundAtTarget)
|
||||
|
||||
Reference in New Issue
Block a user