Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 935 Lines • ▼ Show 20 Lines | CFeeRate CTxMemPool::estimateFee(int nBlocks) const { | ||||
return minerPolicyEstimator->estimateFee(nBlocks); | return minerPolicyEstimator->estimateFee(nBlocks); | ||||
} | } | ||||
CFeeRate CTxMemPool::estimateSmartFee(int nBlocks, | CFeeRate CTxMemPool::estimateSmartFee(int nBlocks, | ||||
int *answerFoundAtBlocks) const { | int *answerFoundAtBlocks) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return minerPolicyEstimator->estimateSmartFee(nBlocks, answerFoundAtBlocks, | return minerPolicyEstimator->estimateSmartFee(nBlocks, answerFoundAtBlocks, | ||||
*this); | *this); | ||||
} | } | ||||
double CTxMemPool::estimatePriority(int nBlocks) const { | |||||
LOCK(cs); | |||||
return minerPolicyEstimator->estimatePriority(nBlocks); | |||||
} | |||||
double CTxMemPool::estimateSmartPriority(int nBlocks, | double CTxMemPool::estimateSmartPriority(int nBlocks, | ||||
int *answerFoundAtBlocks) const { | int *answerFoundAtBlocks) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return minerPolicyEstimator->estimateSmartPriority( | return minerPolicyEstimator->estimateSmartPriority( | ||||
nBlocks, answerFoundAtBlocks, *this); | nBlocks, answerFoundAtBlocks, *this); | ||||
} | } | ||||
bool CTxMemPool::WriteFeeEstimates(CAutoFile &fileout) const { | bool CTxMemPool::WriteFeeEstimates(CAutoFile &fileout) const { | ||||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |