EstimateSmart functions consider mempool min fee

This commit is contained in:
Alex Morcos
2015-11-16 15:21:51 -05:00
parent f22ac4a22c
commit 6303051470
6 changed files with 22 additions and 8 deletions

View File

@@ -704,7 +704,7 @@ CFeeRate CTxMemPool::estimateFee(int nBlocks) const
CFeeRate CTxMemPool::estimateSmartFee(int nBlocks, int *answerFoundAtBlocks) const
{
LOCK(cs);
return minerPolicyEstimator->estimateSmartFee(nBlocks, answerFoundAtBlocks);
return minerPolicyEstimator->estimateSmartFee(nBlocks, answerFoundAtBlocks, this);
}
double CTxMemPool::estimatePriority(int nBlocks) const
{
@@ -714,7 +714,7 @@ double CTxMemPool::estimatePriority(int nBlocks) const
double CTxMemPool::estimateSmartPriority(int nBlocks, int *answerFoundAtBlocks) const
{
LOCK(cs);
return minerPolicyEstimator->estimateSmartPriority(nBlocks, answerFoundAtBlocks);
return minerPolicyEstimator->estimateSmartPriority(nBlocks, answerFoundAtBlocks, this);
}
bool