diff --git a/src/policy/fees.h b/src/policy/fees.h --- a/src/policy/fees.h +++ b/src/policy/fees.h @@ -248,16 +248,6 @@ CFeeRate estimateSmartFee(int confTarget, int *answerFoundAtTarget, const CTxMemPool &pool); - /** - * Estimate priority needed to get be included in a block within confTarget - * blocks. - * DEPRECATED - * Returns -1 unless mempool is currently limited then returns INF_PRIORITY - * answerFoundAtTarget is set to confTarget - */ - double estimateSmartPriority(int confTarget, int *answerFoundAtTarget, - const CTxMemPool &pool); - /** Write estimation data to a file */ void Write(CAutoFile &fileout); diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -521,25 +521,6 @@ return CFeeRate(Amount(int64_t(median))); } -double CBlockPolicyEstimator::estimateSmartPriority(int confTarget, - int *answerFoundAtTarget, - const CTxMemPool &pool) { - if (answerFoundAtTarget) { - *answerFoundAtTarget = confTarget; - } - - // If mempool is limiting txs, no priority txs are allowed - Amount minPoolFee = - pool.GetMinFee(gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * - 1000000) - .GetFeePerK(); - if (minPoolFee > Amount(0)) { - return double(INF_PRIORITY.GetSatoshis()); - } - - return -1; -} - void CBlockPolicyEstimator::Write(CAutoFile &fileout) { fileout << nBestSeenHeight; feeStats.Write(fileout);