@@ -505,7 +505,7 @@ CFeeRate CBlockPolicyEstimator::estimateFee(int confTarget)
505
505
return CFeeRate (median);
506
506
}
507
507
508
- CFeeRate CBlockPolicyEstimator::estimateSmartFee (int confTarget, int *answerFoundAtTarget, const CTxMemPool * pool)
508
+ CFeeRate CBlockPolicyEstimator::estimateSmartFee (int confTarget, int *answerFoundAtTarget, const CTxMemPool& pool)
509
509
{
510
510
if (answerFoundAtTarget)
511
511
*answerFoundAtTarget = confTarget;
@@ -522,7 +522,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, int *answerFoun
522
522
*answerFoundAtTarget = confTarget - 1 ;
523
523
524
524
// If mempool is limiting txs , return at least the min fee from the mempool
525
- CAmount minPoolFee = pool-> GetMinFee (GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ).GetFeePerK ();
525
+ CAmount minPoolFee = pool. GetMinFee (GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ).GetFeePerK ();
526
526
if (minPoolFee > 0 && minPoolFee > median)
527
527
return CFeeRate (minPoolFee);
528
528
@@ -541,7 +541,7 @@ double CBlockPolicyEstimator::estimatePriority(int confTarget)
541
541
return priStats.EstimateMedianVal (confTarget, SUFFICIENT_PRITXS, MIN_SUCCESS_PCT, true , nBestSeenHeight);
542
542
}
543
543
544
- double CBlockPolicyEstimator::estimateSmartPriority (int confTarget, int *answerFoundAtTarget, const CTxMemPool * pool)
544
+ double CBlockPolicyEstimator::estimateSmartPriority (int confTarget, int *answerFoundAtTarget, const CTxMemPool& pool)
545
545
{
546
546
if (answerFoundAtTarget)
547
547
*answerFoundAtTarget = confTarget;
@@ -550,7 +550,7 @@ double CBlockPolicyEstimator::estimateSmartPriority(int confTarget, int *answerF
550
550
return -1 ;
551
551
552
552
// If mempool is limiting txs, no priority txs are allowed
553
- CAmount minPoolFee = pool-> GetMinFee (GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ).GetFeePerK ();
553
+ CAmount minPoolFee = pool. GetMinFee (GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ).GetFeePerK ();
554
554
if (minPoolFee > 0 )
555
555
return INF_PRIORITY;
556
556
@@ -562,7 +562,6 @@ double CBlockPolicyEstimator::estimateSmartPriority(int confTarget, int *answerF
562
562
if (answerFoundAtTarget)
563
563
*answerFoundAtTarget = confTarget - 1 ;
564
564
565
-
566
565
return median;
567
566
}
568
567
0 commit comments