diff options
author | Alex Morcos <morcos@chaincode.com> | 2017-01-19 15:17:33 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2017-02-27 11:23:51 -0500 |
commit | fe282acd7604b5265762b24e531bdf1ebb1f009b (patch) | |
tree | 4f10b6a0221b8b706d58458f31855673c13fb36b /src/policy/fees.cpp | |
parent | 400b15147cf1c4757927935222611e8d3481e739 (diff) |
[cleanup] Remove estimatePriority and estimateSmartPriority
Unused everywhere now except one test.
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r-- | src/policy/fees.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 8f6a1e60f4..89220f26b6 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -452,24 +452,6 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, int *answerFoun return CFeeRate(median); } -double CBlockPolicyEstimator::estimatePriority(int confTarget) -{ - return -1; -} - -double CBlockPolicyEstimator::estimateSmartPriority(int confTarget, int *answerFoundAtTarget, const CTxMemPool& pool) -{ - if (answerFoundAtTarget) - *answerFoundAtTarget = confTarget; - - // If mempool is limiting txs, no priority txs are allowed - CAmount minPoolFee = pool.GetMinFee(GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK(); - if (minPoolFee > 0) - return INF_PRIORITY; - - return -1; -} - void CBlockPolicyEstimator::Write(CAutoFile& fileout) { fileout << nBestSeenHeight; |